tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Stewart <Brian.Stew...@ahom.com>
Subject RE: javax.servlet.ServletException: JSPException including path '/layouts/template.jsp'.
Date Tue, 10 Nov 2009 14:40:52 GMT
Sounds like you have an error in your template.jsp.  Can you post the contents and the tiles
include?

Regards,
Brian Stewart

-----Original Message-----
From: Andy T [mailto:verygoofyone@gmail.com] 
Sent: Tuesday, November 10, 2009 8:34 AM
To: users@tiles.apache.org
Subject: javax.servlet.ServletException: JSPException including path '/layouts/template.jsp'.

Hi All,

I am new to tiles and I have a small struts application that uses
tiles.  On one of the .jsp pages in the application I have search
functionality by certain criteria.  I want to search by criteria and
then reload the SAME .jsp page which shows the results of the search.
However, when I attempt to do this I get the exception shown in the
subject above.  How do I reload the same .jsp after executing code on
the server in my action with Tiles?

In my struts-config I have this:

<action path="/search" type="Search"
name="DefectForm"
input="/error.jsp"
scope="session"
cancellable="true"
validate="true">
<forward name="success" path="/test5.jsp"/>
<forward name="failure" path="/submitpage.jsp"/>
</action>

<action path="/searchresults" type="SearchResults"
name="DefectForm"
input="/error.jsp"
scope="session"
cancellable="true"
validate="true">
<forward name="success" path="/test5.jsp"/>
<forward name="failure" path="/submitpage.jsp"/>
</action>

Here's the exception report:

javax.servlet.ServletException: JSPException including path
'/layouts/template.jsp'.
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

org.apache.jasper.JasperException: JSPException including path
'/layouts/template.jsp'.
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
	org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
	org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
	org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

org.apache.tiles.impl.CannotRenderException: JSPException including
path '/layouts/template.jsp'.
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:691)
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:643)
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:626)
	org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:322)
	org.apache.tiles.jsp.taglib.InsertDefinitionTag.renderContext(InsertDefinitionTag.java:66)
	org.apache.tiles.jsp.taglib.InsertTemplateTag.render(InsertTemplateTag.java:81)
	org.apache.tiles.jsp.taglib.RenderTag.doEndTag(RenderTag.java:220)
	org.apache.jsp.test5_jsp._jspx_meth_tiles_005finsertDefinition_005f0(test5_jsp.java:92)
	org.apache.jsp.test5_jsp._jspService(test5_jsp.java:63)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
	org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
	org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
	org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

Thanks,

Andy
This message is confidential, intended only for the named recipient
and may contain information that is privileged or exempt from
disclosure under applicable law.  If you are not the intended
recipient, you are notified that the dissemination, distribution or
copying of this message is strictly prohibited.  If you receive
this message in error, or are not the named recipient, please
notify the sender at the email address listed above.


Mime
View raw message