Expression Language in JSP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top