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 Tue, 08 Jun 2004 04:46:04 GMT
That worked! Thanks.

----- Original Message ----- 
From: "Marcelo Baltar" <marcelob@task.com.br>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Monday, June 07, 2004 7:24 PM
Subject: RES: Using EL


> 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:keithh@addr.com] 
> > 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" <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
> > 
> 
> 
> ---------------------------------------------------------------------
> 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