C
Cid
I'm not getting the expected behavior (as I understand it) from my
web.xml file. I'm using tomcat5 with the default jsp & servlet libs it
comes with (2.0 & 2.4 respectively). My web.xml file is of 2.3 format
(just cause that was the sample on which I based it).
So I expect (per the JSP spec) that EL is NOT evaluated by default
because of the 2.3 web.xml. This is true.
If I use the page directive, <%@ page isELIgnored='false'%>, then EL
is evaluated as expected.
So here's the kicker: I want to try turning EL on by default for jsp
pages in my web app so I add the appropriate jsp-config block to my
web.xml:
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
</jsp-property-group>
</jsp-config>
With the page directive removed, I expect (per the spec) that EL will
now be evaluated by default. Not so, still behaves as if it's off.
There are no other groups or mappings in the web.xml that could
override the .jsp mapping. I also tried setting the pattern explicitly
to my test page (/index.jsp) to no avail. Also tried /*.jsp but that
causes an error while trying to load the context.
Nothing abnormal looking in the logs. Any suggestions?
web.xml file. I'm using tomcat5 with the default jsp & servlet libs it
comes with (2.0 & 2.4 respectively). My web.xml file is of 2.3 format
(just cause that was the sample on which I based it).
So I expect (per the JSP spec) that EL is NOT evaluated by default
because of the 2.3 web.xml. This is true.
If I use the page directive, <%@ page isELIgnored='false'%>, then EL
is evaluated as expected.
So here's the kicker: I want to try turning EL on by default for jsp
pages in my web app so I add the appropriate jsp-config block to my
web.xml:
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
</jsp-property-group>
</jsp-config>
With the page directive removed, I expect (per the spec) that EL will
now be evaluated by default. Not so, still behaves as if it's off.
There are no other groups or mappings in the web.xml that could
override the .jsp mapping. I also tried setting the pattern explicitly
to my test page (/index.jsp) to no avail. Also tried /*.jsp but that
causes an error while trying to load the context.
Nothing abnormal looking in the logs. Any suggestions?