struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: problem using JSTL inside struts/tiles application
Date Mon, 02 Feb 2004 16:50:17 GMT
I've looked at this a little closer and it's not caused by Struts or Tiles. I'll
continue the thread over on taglibs-user...

Quoting Jason.West@ky.gov:

> I started this on the taglibs group and looks and have narrowed
> the problem down to its use inside a struts/tiles application.
> 
> *** from the emails in the other group
> 
> I'd like to add that I moved the two files to the webroot and
> called them directly (not through struts) and it works. So there
> must be something with struts/tiles that is breaking the JSTL
> tags.
> 
> 
> Anyone else run into a similiar situation.
> 
> I have a page that was running fine parsing and looping
> through xml data.
> 
> I try to incorporate this page as a tile and on my first
> x:forEach statement I get:
> 
> [ServletException in:/WEB-INF/pages/JobSearch.jsp]
> $prefix:javax.servlet.forward.request_uri'
> 
> 	<c:set var="statesxml" >
> 		<c:out escapeXml="false"
> value="${applicationScope['domain.states']}" />		
> 	</c:set>
> 	
> 	<x:parse xml="${statesxml}" var="statedom" />
> 	
> 	<c:set var="stateoptions" >
> 		<option value="" >-Choose-</option>
> 		<x:forEach var="statenode" select="$statedom//states" >
> 			<option value="<x:out select="$statenode/@state" />"
> >
> 			<x:out select="./text()" />
> 			</option>
> 		</x:forEach>
> 	</c:set>
> 
> Using jdk1.4.2_03, tomcat 5.0.16, struts 1.1 and commons jstl taglib
> 1.1.0-B1
> 
> Thanks
> 
> -----Original Message-----
> From: Jason.West@ky.gov [mailto:Jason.West@ky.gov]
> Sent: Friday, January 30, 2004 3:39 PM
> To: taglibs-user@jakarta.apache.org
> Subject: RE: tiles breaks x:forEach
> 
> 
> Implemented what you asked by adding a new action to struts-config 
> to a jsproxy.jsp which has ony the page directive and a jsp:include 
> to the JobSearch.jsp and it produced the following
> 
> javax.servlet.ServletException:
> org.apache.taglibs.standard.tag.common.xml.UnresolvableException:
> $prefix:javax.servlet.forward.request_uri
> 	
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
> mpl.java:864)
> 	
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:800)
> 	
> org.apache.jsp.WEB_002dINF.pages.JobSearch_jsp._jspService(JobSearch_jsp.jav
> a:162)
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
> 	
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1
> 002)
> 	
> org.apache.jsp.WEB_002dINF.pages.jsproxy_jsp._jspService(jsproxy_jsp.java:42
> )
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
> 	
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
> 69)
> 	
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
> r.java:274)
> 	
> org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
> sor.java:455)
> 	
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
> estProcessor.java:320)
> 	
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> 	
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> 	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message