You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Thorhauer <jt...@phoenixcolor.com> on 2003/04/10 13:55:47 UTC
4.1.24 jsp taglib evaluation problem
Hi,
I have a web application that runs fine on tomcat 4.1.18 but is having a
problem in 4.1.24. I posted this problem to the tomcat list but didnt
get much of a response. The problem seems to be related to the use of a
tiles definition in a jsp page and the use of the jstl c:out tag for
biulding part of the tiles definition. Here is the source for the .jsp
page:
==========================================
<%@ taglib uri="/tags/permitted-taglibs" prefix="permitted" %>
<%@ taglib uri="/tags/struts-html-el" prefix="html" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<%@ taglib uri='/tags/core' prefix='c'%>
<tiles:insert page="/layout/layout.jsp"
controllerUrl="/myapp/viewDispatcher.do?method=
<c:out value='${param.method}'/>">
<tiles:put name="header" value="null"/>
<tiles:put name="body" value="null"/>
<tiles:put name="footer" value="null"/>
</tiles:insert>
==========================================
When I load the above page in tomcat 4.1.18 the c:out code
<c:out value='${param.method}'/> properly outputs the value of the
"method" parameter that was passed in via the URI. However, in tomcat
4.1.24 the c:out tag is not evaluated so I am getting a method that is
acutally shows the literal <c:out value='${param.method}'/>"> insead of
the value of the method parameter that was passed into the page.
I checked the java source that is being produced from the .jsp page in
both versions of Tomcat and they are identical. I also checked to make
sure that the "method" parameter was available by doing the following:
<%
System.err.println("the method=" + request.getParameter("method"));
%>
and in both versions of the server the "method" parameter is in the
request parameters. I also noticed that in both versions if I do the
following in the .jsp page:
<c:out value='${param.method}'/>
it seems to work just fine.
Any ideas on what the problem is here and how to fix it?
Thanks,
John
--
********************************
** John Thorhauer
** Web Developer
** Phoenix Color Corp.
** jthorhauer@phoenixcolor.com
********************************
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org