struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Appel, Jeremy D" <jeremy.ap...@qwest.com>
Subject JSP compilation errors with Tiles and Actions
Date Fri, 26 Sep 2003 21:00:45 GMT
All,

	I have been working on putting my jsp inside the WEB-INF directory so that users can not
directly access them.  Instead I am using actions and tiles definitions to access the pages.
 However, I am receiving the following error when trying to execute an action that refers
to my jsp.

org.apache.jasper.JasperException: Unable to compile class for JSP 
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 etc.

Here is my tiles-defs.xml and a snippet of the corresponding action from struts-config.xml.
TIA, Jeremy
<tiles-definitions>
<definition name="PORT.default" path="/WEB-INF/jsp/classicLayout.jsp">
	  <put name="title"  value="XXX" />
	  <put name="header" value="/header.do" />
	  <put name="menu"   value="/menu.do" />
	  <put name="footer" value="/footer.do" /> 
        <put name="body"   value="/body.do" />
</definition>
<definition name="PORT.default.menu" path="/WEB-INF/jsp/menu.jsp" >
  <put name="title" value="XXXX" />
  <putList name="items" >
    <item value="Search by Customer" link="/WEB-INF/jsp/lookupCustomer.jsp" />
    <item value="Search by Trunk Group Name"  link="/WEB-INF/jsp/lookupTrunkGroup.jsp"
/>
    <item value="Search by DS1 Name"  link="/WEB-INF/jsp/lookupDs1.jsp" />
   </putList>
</definition>
<definition name="PORT.default.header" path="/WEB-INF/jsp/header.jsp" >
   <put name="header_image" value="/WEB-INF/images/cp_head.gif" />
</definition>
<definition name="PORT.default.footer" path="/WEB-INF/jsp/footer.jsp" />
<definition name="PORT.default.body" path="/WEB-INF/jsp/body.jsp" />
<definition name=".port.lookupCustomer.body" path="/WEB-INF/jsp/CustomerBody.jsp" />
<definition name=".port.lookupTrunkGroup.body" path="/WEB-INF/jsp/TrunkGroupBody.jsp" />
<definition name=".port.lookupDs1.body" path="/WEB-INF/jsp/Ds1Body.jsp" />
<definition name=".port.lookupCustomer" extends="PORT.default">
   <put name="body" value="/CustomerBody.do"/>
</definition>
<definition name=".port.lookupTrunkGroup" extends="PORT.default">
   <put name="body" value="/TrunkGroupBody.do"/>
</definition>
<definition name=".port.lookupDs1" extends="PORT.default">
   <put name="body" value="/Ds1Body.do"/>
</definition>
</tiles-definitions>

struts-config

<action
	path="/home"
	type="org.apache.struts.actions.ForwardAction"
	parameter="PORT.default"/>
    <action
	path="/lookupCustomer"
	type="org.apache.struts.actions.ForwardAction"
	parameter=".port.lookupCustomer"/>
    <action
	path="/header"
	type="org.apache.struts.actions.ForwardAction"
	parameter="PORT.default.header"/>
    <action
	path="/menu"
	type="org.apache.struts.actions.ForwardAction"
	parameter="PORT.default.menu"/>  
    <action
	path="/footer"
	type="org.apache.struts.actions.ForwardAction"
	parameter="PORT.default.footer"/> 
    <action
	path="/body"
	type="org.apache.struts.actions.ForwardAction"
	parameter="PORT.default.body"/>  
    <action
	path="/CustomerBody"
	type="org.apache.struts.actions.ForwardAction"
	parameter=".port.lookupCustomer.body"/>
    <action
	path="/TrunkGroupBody"
	type="org.apache.struts.actions.ForwardAction"
	parameter=".port.lookupTrunkGroup.body"/>
    <action
	path="/Ds1Body"
	type="org.apache.struts.actions.ForwardAction"
	parameter=".port.lookupDs1.body"/> 



---------------------------------------------------------------------
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