File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

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:
subject: A question on <result>
It's not a secret anymore!