Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Couldn't Enable Expression language in JSP1.2

843835Apr 8 2003 — edited Aug 8 2007
Hi All,
i wanted to use expression language (EL) in my jsp page. But the expression language code is not getting evaluated. For example
for the following code
<jsp:root version="2.0">
<jsp:declaration>String s="Test String">
<jsp:text>This is a ${s}</jsp:text>
</jsp:root>
The output is "This is a ${s}". The EL ${s} is not being evaluated.

I am using Tomcat 4.1.24, which implements JSP 1.2 spec.
In JSP 1.2 specification i found that EL can be enabled by adding the following code under the element <web-app> in the web.xml file
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>true</el-ignored>
</jsp-property-group>
<jsp-config>

but on adding this code in web.xml file tomcat generates parse error stating that "<jsp-config>" element not found. Now the problem is the dtd file (web-app_2_3.dtd) which is refered by web.xml is not having the element <jsp-config> or <jsp-property-group> or <el-enabled>

IF SOMEONE HAVE FOUND SOME SOLUTION FOR THIS KIND OF PROBLEM PLS HELP ME

Thanx,
Karthikraj.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 5 2007
Added on Apr 8 2003
11 comments
455 views