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]