tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hankin" <kei...@addr.com>
Subject Re: Using EL
Date Mon, 07 Jun 2004 05:46:08 GMT
According to the spec, this is only true for Servlet 2.3 and earlier... 2.4
should, by default, automatically support "${var}" anywhere in the page.

----- Original Message -----
From: "Ariel Valentin" <asvb278@hotmail.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Sunday, June 06, 2004 7:10 AM
Subject: Re: Using EL


> I believe one must use the out tag to be able to display EL values <c:out
> value="${var}" />
>
> Mr. Ariel S. Valentin
> mailto: asvb278@hotmail.com
>
>
>
>
> >From: Mark Lowe <mark.lowe@boxstuff.com>
> >Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> >To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> >Subject: Re: Using EL
> >Date: Sat, 5 Jun 2004 14:38:49 +0200
> >
> >I still use the 2.3 spec for my web.xml but i think you need something
like
> >this to activate it
> >
> >
> ><jsp-config>
> > <url-pattern>*.jsp</url-pattern>
> > <el-ignored>false</el-ignored>
> ></jsp-config>
> >
> >The dtd should be able to show you where it should go (i.e in what
order).
> >
> >
> >
> >On 5 Jun 2004, at 14:22, Keith Hankin wrote:
> >
> >>Sorry, copy error. I *did* specify <%@page isELIgnored="false" %>
> >>That is why I got the error message I did.
> >>
> >>----- Original Message -----
> >>From: "Mark Lowe" <mark.lowe@boxstuff.com>
> >>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> >>Sent: Saturday, June 05, 2004 5:29 PM
> >>Subject: Re: Using EL
> >>
> >>
> >>>Try
> >>>
> >>><%@ page isELIgnored="false" %>
> >>>
> >>>not
> >>>
> >>><% page isELIgnored="false" %>
> >>>
> >>>The tlds are in the jar files no need to have the tld's like
> >>>traditional taglibs
> >>>
> >>>The below in your jsp should do the job.
> >>><%@ page isELIgnored="false" %>
> >>><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
> >>><c:set var="test" value="Mellow world!!" />
> >>>${test}
> >>>
> >>>
> >>>HTH Mark
> >>>
> >>>On 5 Jun 2004, at 12:47, Keith Hankin wrote:
> >>>
> >>>>I have a very simple JSP page that attempts to output the value of a
> >>>>variable using EL "${var}" notation. However, it is just printing the
> >>>>"${var}" literally. I am using Tomcat 5.0.19, and according to the JSP
> >>>>spec,
> >>>>since this supports 2.4 servlet spec, it should support EL by default.
> >>>>Anyhow, I tried adding:
> >>>>                 <% page isELIgnored="false" %>
> >>>>to the beginning of the page, but then I get the following error:
> >>>>
> >>>>        According to TLD or attribute directive in tag file, attribute
> >>>>value
> >>>>does not accept expressions.
> >>>>
> >>>>However, I do not have any TLD or tag file for this JSP file.
> >>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
> _________________________________________________________________
> Getting married? Find great tips, tools and the latest trends at MSN Life
> Events. http://lifeevents.msn.com/category.aspx?cid=married
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message