Indeed I am:
I am using http://java.sun.com/dtd/web-app_2_3.dtd
After you told me that I did the following and fixed the problem:
change
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
to this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<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">
Then after restarting tomcat I got the following error: "According to TLD or
attribute directive in tag file,
attribute value does not accept any expressions".
Now my JSTL tags were broken. So after a quick Google search I found that you
have to change your taglib from
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
to
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
After doing all this the EL is now being evaluated on the JSTL tags, and my JSP
page. 6 hours wasted on this stupid problem.
Thank you very much Paul and Wendy for all your help.
Felix
-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Fri 6/30/2006 9:56 PM
To: Struts Users Mailing List
Subject: Re: Passing Struts request attribute to custom tag
On 6/30/06, Felix Khazin <[EMAIL PROTECTED]> wrote:
> Another interesting thing is that say i do something like:
>
> <c:set var="test" value="1"/>
>
> and then in my JSP i write, for example, <p>${test}</p>. I get ${test} in the
> browser. So the only time that ${test} gets evaluated is when i do a <c:out
> value="${test}"/>
That says your container is not evaluating the expressions. Has this
ever worked for this app?
Check your configuration, my guess is that your web.xml is still using
the Servlet 2.3 DTD.
--
Wendy
---------------------------------------------------------------------
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]