This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: A question on <result>
 
It's not a secret anymore!