aspose file tools
The moose likes Struts and the fly likes global forward in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "global forward in struts" Watch "global forward in struts" New topic
Author

global forward in struts

Sreejith kayappuram
Ranch Hand

Joined: Jun 24, 2008
Posts: 35
Hi,
i have a doubt. consider the following struts config entry

<global-forwards>
<forward name="failure" path="/common/jsp/error.jsp"/>
</global-forwards>

<action path="/test"
type="TestAction"
name="TestForm"
input="/jsp/Test.jsp>
<forward name="failure" path="nextpage.jsp"/>

and my action class returns mapping.finForward("failure");

my doubt is which forward will be invoked.. global or local ??


Thanks
Sreejith
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Which one is being invoked in your application now?
Sreejith kayappuram
Ranch Hand

Joined: Jun 24, 2008
Posts: 35
forgive me, actually i did n't check it...

i just want to know how global forward and local forwards are managed in struts.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: global forward in struts
 
Similar Threads
Cannot Find Bean inscope null
how to determine the forward? [s1]
WSAD 5.1.2 caching jsps
Struts validation problem..
Cannot retrieve definition for form bean HtmlFileForm error??