When you have a global forward and a local forward in struts-config.xml, which one will be called

Showing Answers 1 - 5 of 5 Answers

if <action> element has <forward> declaration with same name as global forward then global forward is not used. Instead the <action> element’s <forward> takes precendence.

  Was this answer useful?  Yes

Local Forwards always override Global Forward names. So for example, if you have a Global Forward with the name shoppingCart and a local Forward with the same name, the local Forward takes priority. If a local Forward can not be found then Struts will try to find the same name among Global Forwards.

  Was this answer useful?  Yes

By default precedence is given to the local forward. Global forward is like global and available always, but if you don't want that global forward then very well you have to add a local forward. It's just like Local and Global variables.


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions