• Post Reply Bookmark Topic Watch Topic
  • New Topic

A question on <result>  RSS feed

 
Thomas Kennedy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kerniawan's Struts 2 Design and Programming has a snippet on page 47 as follows:



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?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!