This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can anyone suggest me a code snippet for IncludeAction in Struts

 
mihir maniar
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic