aspose file tools
The moose likes Spring and the fly likes servlet exception while including page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "servlet exception while including page" Watch "servlet exception while including page" New topic
Author

servlet exception while including page

dhoni Gibson
Ranch Hand

Joined: Feb 10, 2011
Posts: 30
getting javax.servlet.jsp.JspException: ServletException while including page using tiles template.

i am getting above exception when i try to include struts tag in my body jsp

i am using spring mvc in which i integrate struts tiles and tag libraries

<html>
<%@ taglib uri="http://struts.apache.org/tags-logic"
prefix="logic"%>
<body>
<form name="mystuff" action="hello.htm" method="post"><input
type="hidden" name="actionType" value="save" />
<table height="50%" width="100%">
<tr height="15%">
<td class="labelStyle">Product Name</td>
<td width="221"><input class="text" type="text"
name="productName" /></td>
<td class="labelStyle" width="146">Product Type</td>
<td width="475"><input class="text" type="text"
name="productType" /></td>
</tr>

<tr height="15%">
<td class="labelStyle">Manufacturer</td>
<td width="221"><input class="text" type="text"
name="manufacturer" /></td>
<td class="labelStyle" width="146">Price</td>
<td width="475"><input class="text" type="text" name="price" /></td>
</tr>


</table>

</form>

</body>

exception in my tomcat server

SEVERE: JSPException while including path '/WEB-INF/jsp/product.jsp'.
javax.servlet.jsp.JspException: ServletException while including page.
at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:102)
at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesR
equestContext.java:88)
at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTiles
RequestContext.java:82)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.
java:465)
at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttribute
Tag.java:140)
at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttribute
Tag.java:117)
at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport
.java:171)
at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecur
ityTagSupport.java:75)
at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTag
Support.java:80)
at org.apache.jsp.WEB_002dINF.jsp.layout_jsp._jspx_meth_tiles_005finsert
Attribute_005f1(layout_jsp.java:175)
at org.apache.jsp.WEB_002dINF.jsp.layout_jsp._jspService(layout_jsp.java
:80)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:369)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
08)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:659)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:457)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:395)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:311)
at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(S
ervletTilesRequestContext.java:198)
at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(
ServletTilesRequestContext.java:185)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.
java:419)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.
java:370)
at org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOut
putModel(TilesView.java:63)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView



if i remove that struts tag, my application works fine

please help me on this

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: servlet exception while including page
 
Similar Threads
How can i get selected radio button value using jsp
jsp insert program not working
ServletException while including page
Doubts in jsp
tiles and <sx:autocompleter>