• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dave,
You can certainly do this:
<forward name="success" path="/do/Campaign.do" />
This is called Action Chaining.
 
reply
    Bookmark Topic Watch Topic
  • New Topic