D
David
I'm trying to use the Expression language in a JSP page but I cannot
get Tomcat to enable EL evaluation.
In Web.xml I have the following:
---- snip -----
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-enabled>true</el-enabled>
</jsp-property-group>
---- snip -----
In my JSP page I have
---- snip -----
<jsp:useBean id="menu" class="portal.MenuBean" scope="session"/>
<jsp:setProperty name="menu" property="user" value="dma" />
<HTML><BODY>
<p>Script Expression: <%=menu.getUser()%></p>
<p>EL: ${menu.user}</P>
</BODY></HTML>
---- snip -----
What I would expect to see is:
Script Expression: dma
EL: dma
However all I get is:
Script Expression: dma
EL: ${menu.user}
---------------------------
Is there anyone who can shed some light on this before I give up and go
back to Microsoft... (joke)
I'm using Tomcat 5 if that helps
get Tomcat to enable EL evaluation.
In Web.xml I have the following:
---- snip -----
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-enabled>true</el-enabled>
</jsp-property-group>
---- snip -----
In my JSP page I have
---- snip -----
<jsp:useBean id="menu" class="portal.MenuBean" scope="session"/>
<jsp:setProperty name="menu" property="user" value="dma" />
<HTML><BODY>
<p>Script Expression: <%=menu.getUser()%></p>
<p>EL: ${menu.user}</P>
</BODY></HTML>
---- snip -----
What I would expect to see is:
Script Expression: dma
EL: dma
However all I get is:
Script Expression: dma
EL: ${menu.user}
---------------------------
Is there anyone who can shed some light on this before I give up and go
back to Microsoft... (joke)
I'm using Tomcat 5 if that helps