aspose file tools*
The moose likes Struts and the fly likes A question on <result> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "A question on <result>" Watch "A question on <result>" New topic
Author

A question on <result>

Thomas Kennedy
Ranch Hand

Joined: Jan 20, 2008
Posts: 137
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?


Costs matter. Justice lies in processes not outcomes. Crime is caused by criminals.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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: http://aspose.com/file-tools
 
subject: A question on <result>