tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: EL not evaluatin in TC 5.5
Date Tue, 05 Dec 2006 10:33:32 GMT
Did you declare your web.xml to use the servlet spec 2.4 schema? AFAIK, 
that's required to make EL expressions work.

--David

Roberto Marra wrote:
> I usually put under WEB-INF/tld/ all the JSP tag library and under 
> WEB-INF/lib all the *.jar file... even jstl.jar & I never have had 
> problem
>
> Ciao
> Roberto
>
> Michael Hencin ha scritto:
>> I have tomcat 5.5,  j2sdk1.4.2_11 on windows xp sp2
>>
>>  
>>
>>  
>>
>> I have installed the BIRT viewer web app (from eclips.org) and wanted to
>> also add JSTL to the jsp pages. I download and installed the jstl.jar 
>> and
>> standard.jar into my webapp WEB-INF/lib. I put the c.tld and some 
>> other tld
>> files into the WEB-INF dir. My jsp does not seem to be evaluating the 
>> EL I
>> have another sample webapp, that I got the simple jsp from, and its
>> installed in the same TC5.5 and the same jsp evaluates fine.
>>  
>>
>> >From what I have read about installing JSTL, I cannot see why the EL
>> expressions will not evaluate?
>>
>>  
>>
>> I added a simple jsp as follows into the webapp dir.
>>
>>  
>>
>> <%@ page contentType="text/html" %>
>>
>> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
>>
>> <html>
>>
>>   <head>
>>
>>     <title>JSP is Easy</title>
>>
>>   </head>
>>
>>   <body bgcolor="white">
>>
>>  
>>
>>     <h1>JSP is as easy as ...</h1>
>>
>>  
>>
>>     <%-- Calculate the sum of 1 + 2 + 3 dynamically --%>
>>
>>     1 + 2 + 3 = <c:out value="${1 + 2 + 3}" />
>>
>>  
>>
>>   </body>
>>
>> </html>
>>
>>  
>>
>> The result when I load this jsp is
>>
>>  
>>
>>  
>>  
>> <html>
>>   <head>
>>     <title>JSP is Easy</title>
>>   </head>
>>   <body bgcolor="white">
>>  
>>     <h1>JSP is as easy as ...</h1>
>>  
>>         1 + 2 + 3 = ${1 + 2 + 3}
>>  
>>   </body>
>> </html>
>>
>>  
>>
>> My web.xml entries for the tag-lib are as follows;
>>
>>  
>>
>> <taglib>
>>
>>     <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
>>
>>     <taglib-location>/WEB-INF/fmt.tld</taglib-location>
>>
>>   </taglib>
>>
>>  
>>
>>   <taglib>
>>
>>     <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
>>
>>     <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
>>
>>   </taglib>
>>
>>  
>>
>>   <taglib>
>>
>>     <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
>>
>>     <taglib-location>/WEB-INF/c.tld</taglib-location>
>>
>>   </taglib>
>>
>>  
>>
>>   <taglib>
>>
>>     <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
>>
>>     <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
>>
>>   </taglib>
>>
>>  
>>
>>   <taglib>
>>
>>     <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
>>
>>     <taglib-location>/WEB-INF/sql.tld</taglib-location>
>>
>>   </taglib>
>>
>>  
>>
>>   <taglib>
>>
>>     <taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
>>
>>     <taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
>>
>>   </taglib>
>>
>>  
>>
>>   <taglib>
>>
>>     <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
>>
>>     <taglib-location>/WEB-INF/x.tld</taglib-location>
>>
>>   </taglib>
>>
>>  
>>
>>   <taglib>
>>
>>     <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
>>
>>     <taglib-location>/WEB-INF/x-rt.tld</taglib-location>
>>
>>   </taglib>
>>
>>            
>>  
>>
>> Michael Hencin
>>
>> Enginuity Development
>>
>> 815-505-5028
>>
>>  
>>
>>
>>   
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message