aspose file tools*
The moose likes Struts and the fly likes Does we need both global-forwards and forward in struts-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Does we need both global-forwards and forward in struts-config.xml" Watch "Does we need both global-forwards and forward in struts-config.xml" New topic
Author

Does we need both global-forwards and forward in struts-config.xml

sai prasanna
Ranch Hand

Joined: May 02, 2005
Posts: 167
hi all
Does we need both <global-forwards> and <forward> in struts-config.xml and what does each each element mean

thanks in advance
sai prasanna
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The difference is that a global forward can be found from any action and always forwards to the same jsp, whereas a local forward name means something different for each action, and can forward to different Jsps.

For example, a global forward of "error" always goes to the same jsp (error.jsp for example), but a local forward of "success" only applies to a single specific acion. You could have 5 actions, each with a local forward of "success" and each would forward to 5 separate JSPs.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does we need both global-forwards and forward in struts-config.xml