Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between global action forward and local action forward

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

thanking you
 
Daniel Dalton
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic