Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ActionMapping's local forwards : can 'path' map to other action uris?

 
Dave Knipp
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm curious whether or not an action mapping's local forward can have a logical path, instead of a physical path. ie. do i have to specify an actual .jsp or .html file in the path like this:
<forward name="success" path="/ftd_jsp/campaign.jsp" />
or can i specify another forward as the path:
local forward within action mapping:
<forward name="success" path="campaign" />
global forward in struts-config.xml:
<<forward name="campaign" path="/do/Campaign.do"/>

If i can't do that then i should be able to specify the actual path to the action in the local forward's path, like this:
<forward name="success" path="/do/Campaign.do" />
If anyone could help that would be great,
Thanks,
Dave
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave,
You can certainly do this:
<forward name="success" path="/do/Campaign.do" />
This is called Action Chaining.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic