permaculture playing cards*
The moose likes Struts and the fly likes Can anyone suggest me a code snippet  for IncludeAction in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can anyone suggest me a code snippet  for IncludeAction in Struts" Watch "Can anyone suggest me a code snippet  for IncludeAction in Struts" New topic
Author

Can anyone suggest me a code snippet for IncludeAction in Struts

mihir maniar
Ranch Hand

Joined: Sep 09, 2003
Posts: 88
Can anyone suggest me a code snippet for IncludeAction in Struts

this is my code in the struts-config in the action mappings

<action path="/menu"
type="org.apache.struts.actions.IncludeAction"
parameter="jsp/content.jsp">
</action>

this is the code on the jsp page on which i want to include the contents of the content.jsp page.

<bean:include id= "abc" forward="/menu"/>
. i get the error
Cannot create include URL: java.net.MalformedURLException: Cannot retrieve ActionForward named /menu]: javax.servlet.jsp.JspException: Cannot create include URL: java.net.MalformedURLException: Cannot retrieve ActionForward named /menu

Please help me with this. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can anyone suggest me a code snippet for IncludeAction in Struts