Guillaume Cottenceau <gc3 'at' bluewin.ch> writes:
> Wendy Smoak <java 'at' wendysmoak.com> writes:
>
> > From: "Neil Erdwien" <[EMAIL PROTECTED]>
> > > The ability to use "${expr}" in the text of a JSP page is new to JSP
> > > 2.0. Does your container support JSP 2.0? Tomcat 5 does, Tomcat 4
> > doesn't.
> >
> > And if you're not on JSP 2.0, then try:
> > <c:out value="${user.login}"/>
> > (Assuming the 'user' object has a 'getLogin' method.)
>
> Yes, that does work. However, this much longer than I expected :)
> Still, as I'm using tomcat-5.0.27, I guess I should be able to
> use the shorter form.
>
> Any place to check where this feature could be turned off
> inadvertandly?
Thanks to both the suggestions about JSP 2.0 e.g. implemented
first in tomcat 5, I ended up on the following page:
http://archives.java.sun.com/cgi-bin/wa?A2=ind0305&L=jsp-interest&D=0&P=24887
And actually I was using a web.xml version 2.3, it seems EL is
disabled there by default :(
Using a 2.4 version, it does work perfectly.
But this is kinda stupid, I am using a web.xml file shown as a
demo in the official tomcat 5.0.27 distribution. I don't quite
get why it was using a web.xml of this older version.
Thanks for the help!
--
Guillaume Cottenceau - http://zarb.org/~gc/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]