• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

ServletException while including page

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm, I'm trying to look at your code, but the stubborn forum software has made it look all wonky. If you use CODE tags when posting code to the forums (see the FAQ at ⇒ UseCodeTags ⇐) they tell it "Hey! Keep your hands off my formatting!" and your code will look just like when you cut and pasted it into the reply. Cool, no?
 
dhoni Gibson
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
bear,

thanks for your reply. here is my code.


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




exception in my tomcat server


 
Bartender
Posts: 1845
10
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any more to that stack trace?
Most of what you have included here is related to telling us "something went wrong with including the page" but not actually SAYING what went wrong with it.

Often the most important bits of the stack trace are near the bottom
Specifically after a line that looks something like

caused by ......

That might contain information about the root source of the error.

Can you invoke this page directly?
There is only one struts tag here: the iterate one.
is there an attribute called: productLst in scope? Does it resolve to a list of ProductDTO objects?
 
dhoni Gibson
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
stefan,

i could able to launch this page without the struts tag lib (logic tag), but when include this tag i am getting this error, no matter if i have iterater code inside. i commented the piece of code to test whether this causing the error, but it didnt cause the error.

full stack trace




 
dhoni Gibson
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
I brought this back from the farm where they grow the tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic