Hi Keith,

It also happened to me. To solve that I had to add some "DTD properties"
(not sure if it can be called this way) to the <web-app> tag in web.xml,
like this:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
      http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
    version="2.4">

.
.
.
</web-app>

Hope that helps...

Marcelo

> -----Mensagem original-----
> De: Keith Hankin [mailto:[EMAIL PROTECTED] 
> Enviada em: segunda-feira, 7 de junho de 2004 02:46
> Para: Tomcat Users List
> Assunto: Re: Using EL
> 
> 
> 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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> >
> >
> >
> >
> > >From: Mark Lowe <[EMAIL PROTECTED]>
> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >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 <[EMAIL PROTECTED] isELIgnored="false" %> 
> > >>That is why I got the error message I did.
> > >>
> > >>----- Original Message -----
> > >>From: "Mark Lowe" <[EMAIL PROTECTED]>
> > >>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >>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: 
> [EMAIL PROTECTED]
> > >>>>For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >>>>
> > >>>
> > >>>
> > 
> >>>-------------------------------------------------------------------
> > >>>--
> > >>>To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > >>>For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >>>
> > >>
> > >>
> > 
> >>--------------------------------------------------------------------
> > >>-
> > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >>
> > >
> > >
> > 
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> >
> > _________________________________________________________________
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to