aspose file tools*
The moose likes Struts and the fly likes Global Forwards Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Global Forwards" Watch "Global Forwards" New topic
Author

Global Forwards

Sathy thyagaraj
Greenhorn

Joined: Jan 22, 2007
Posts: 17
Hi
what is the Global Forwards in struts
Can you explain it with example?

thanks
Joan Horta Tosas
Ranch Hand

Joined: Feb 01, 2007
Posts: 59
I'll explain it supposing you know what a "not-global-forward" is in Struts. When you're in an Action, the execute method returns an ActionForward, which are normally declared within an action-mapping scope. The Action then, using the mapping object, returns one of its defined forwards... But you can also create global-forwards, that are accessible from every Action. For example, you can define a global forward to the login page, so you can "send" the user to the login page from everywhere in the app without having to define the same forward in every action mapping. Hope you understood it.
Sathy thyagaraj
Greenhorn

Joined: Jan 22, 2007
Posts: 17
thank you Joan.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Global Forwards
 
Similar Threads
global forward
Duplicate action and path
Glabal Frowards in spring MVC?
logic:redirect not working for me
Difference between <forrward> in <action-mappings> and <forward> in <global-forwards>