Personally, I'd keep JSTL/Standard in WEB-INF/lib and Xerces/Xalan in endorsed.
Unless I needed an app-specific version of the XML libs, in which case I'd need
them in WEB-INF/lib. I wouldn't recommend dumping everything in endorsed, or
some other directory that a shared classloader can access,
I've installed JDK 1.4.2_03, Tomcat 5.0.18 and Apache's JSTL 1.1 on RH Linux
9.
My XHTML JSP contains a simple construct: p1 + 2 + 3 = c:out
value=${1+2+3}//p
But the expression is not being evaluated, yet the c:out tag is being
processed fine. The output just looks like:
1 + 2 + 3 =
]
Reply-To: David Wall [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: EL not being evaluated?
Date: Thu, 5 Feb 2004 09:44:28 -0800
I've installed JDK 1.4.2_03, Tomcat 5.0.18 and Apache's JSTL 1.1 on RH
Linux
9.
My XHTML JSP contains a simple construct: p1 + 2 + 3 = c:out
value=${1+2+3}//p
David Wall wrote:
I've installed JDK 1.4.2_03, Tomcat 5.0.18 and Apache's JSTL 1.1 on RH Linux
9.
My XHTML JSP contains a simple construct: p1 + 2 + 3 = c:out
value=${1+2+3}//p
But the expression is not being evaluated, yet the c:out tag is being
processed fine. The output just looks like:
1 +
Since you're using a JSP 2.0 container, you should be able to just do:
p1 + 2 + 3 = ${1+2+3}/p
Make sure you're using a Servlet 2.4 deployment descriptor.
That didn't work for me. Perhaps it's your last comment. What does it mean
to have a 2.4 deployment descriptor for the JSP page? Maybe
I think you need to indicate in the web.xml that this is a jsp version 2
web
application, otherwise the container assumes the web application is
written for
an old jsp version where not the container but the taglib does the EL
evaluation
(you would need the 1.0.5 taglib version for this).
David Wall wrote:
I think you need to indicate in the web.xml that this is a jsp version 2
web
application, otherwise the container assumes the web application is
written for
an old jsp version where not the container but the taglib does the EL
evaluation
(you would need the 1.0.5 taglib
Thanks. The comments below did it for me. However, I still had some JAR
file location issues (tomcat's common/endorsed for the webapps WEB-INF/lib).
Do most people put the XERCES, XALAN, JSTL/STANDARD jars in the endorsed
location or do they just keep it with their webapps? Right now, I seem
Instead of:
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
...
/web-app
Use:
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;