A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
A question on <result>
Joined: Jan 20, 2008
Jun 03, 2010 14:44:00
Struts 2 Design and Programming
has a snippet on page 47 as follows:
<action name="..." class="..."> <interceptor-ref name="basicStack"/> <result name="input">/jsp/Product.jsp</result> <result>/jsp/ProductDetails.jsp</result> </action>
1. Is it correct to say that the second <result> will be used for all return values other than "input"?
2. It is correct to say that the <global-results> element, if there is one, will never be consulted?
Costs matter. Justice lies in processes not outcomes. Crime is caused by criminals.
Joined: Sep 29, 2008
Jun 03, 2010 17:28:40
1) No. The default result name is "success", and it will be used by anything returning "success", but nothing else.
2) No. Why wouldn't it be?
I agree. Here's the link:
subject: A question on <result>
Forwarding data struts.xml
Struts2 Action Mapping Problem - No configuration found for the specified action
Struts2: which result type to use
Struts 2 struts.xml not redirecting
Issue with Struts 2 Dispatcher Result
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014