A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
difference between global action forward and local action forward
Joined: Apr 16, 2005
Sep 01, 2006 03:31:00
can any one please tell me the difference between global action forward and local action forward in simple words
and when to use both action forward mapppings
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
Joined: Mar 20, 2005
Sep 01, 2006 05:18:00
You can use a global ActionForward from any Action class, whereas a local one may only be used from the associated Action class.
You'd use a global ActionForward where it makes sense to do so - in other words, if you need to forward to the same thing from lots of Actions, use a global one.
Joined: Feb 08, 2006
Sep 01, 2006 16:06:00
For example, you might have a global forward named "error". Then in your action class you could forward to this error every time you encountered an unhandled exception.
I agree. Here's the link:
subject: difference between global action forward and local action forward
Difference between <forrward> in <action-mappings> and <forward> in <global-forwards>
can one have multiple global-forward
Does we need both global-forwards and forward in struts-config.xml
struts forward link?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015