tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason.W...@ky.gov
Subject RE: tiles breaks x:forEach
Date Fri, 30 Jan 2004 15:26:01 GMT
	<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

Mind you, this code works when not in a tile. The rest of the page works in
a 
tile if I comment out the x:forEach's and x:out's; the x:parse seems to work
ok.

Thanks

-----Original Message-----
From: Martin Cooper [mailto:martinc@apache.org]
Sent: Thursday, January 29, 2004 4:52 PM
To: Tag Libraries Users List
Subject: Re: tiles breaks x:forEach


It might help if you could show us the offending JSP code. ;-)

--
Martin Cooper


On Thu, 29 Jan 2004 Jason.West@ky.gov wrote:

> 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'
>
> and the exception in the tomcat log is:
> 2004-01-29 14:31:05 ApplicationDispatcher[/employer] Servlet.service() for
> servlet jsp threw exception
> org.apache.taglibs.standard.tag.common.xml.UnresolvableException:
> $prefix:javax.servlet.forward.request_uri
> 	at
>
org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.not
> Null(Unknown Source)
> 	at
>
org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.get
> VariableValue(Unknown Source)
> 	at
>
org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.get
> VariableOrParam(Unknown Source)
> 	at
> org.apache.taglibs.standard.tag.common.xml.XPathUtil.fillVarStack(Unknown
> Source)
> 	at
> org.apache.taglibs.standard.tag.common.xml.XPathUtil.valueOf(Unknown
Source)
> 	at
> org.apache.taglibs.standard.tag.common.xml.ExprSupport.doStartTag(Unknown
> Source)
> 	at
>
org.apache.jsp.WEB_002dINF.pages.JobSearch_jsp._jspx_meth_x_out_0(JobSearch_
> jsp.java:793)
> 	at
>
org.apache.jsp.WEB_002dINF.pages.JobSearch_jsp._jspx_meth_c_set_10(JobSearch
> _jsp.java:769)
> 	at
>
org.apache.jsp.WEB_002dINF.pages.JobSearch_jsp._jspService(JobSearch_jsp.jav
> a:168)
> 	at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:284)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:204)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> java:742)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
> er.java:630)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
> .java:542)
> 	at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1
> 002)
> 	at
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:626)
> 	at
> org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
> 	at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
> 	at
> org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
> 	at
>
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja
> va:881)
> 	at
> org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
> 	at
>
org.apache.jsp.WEB_002dINF.layout.layout_jsp._jspx_meth_tiles_insert_2(layou
> t_jsp.java:174)
> 	at
>
org.apache.jsp.WEB_002dINF.layout.layout_jsp._jspService(layout_jsp.java:75)
> 	at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:284)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:204)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> java:742)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
> patcher.java:506)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
> er.java:443)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
> .java:359)
> 	at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
> 69)
> 	at
>
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
> r.java:274)
> 	at
>
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
> questProcessor.java:254)
> 	at
>
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
> estProcessor.java:309)
> 	at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> 	at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> 	at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:284)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:204)
> 	at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
> t.java:151)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
> 	at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
> Valve.java:245)
> 	at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:199)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
> t.java:151)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
> 	at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195
> )
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
> t.java:151)
> 	at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164
> )
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
> t.java:149)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
> 	at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :156)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
> t.java:151)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
> 	at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
> 	at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> ction(Http11Protocol.java:696)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
> 	at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:677)
> 	at java.lang.Thread.run(Thread.java:534)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>

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

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


Mime
View raw message