File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struts2 execute return workflow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 execute return workflow" Watch "struts2 execute return workflow" New topic

struts2 execute return workflow

huali ouyang

Joined: Apr 11, 2005
Posts: 5
In each, the work flow may like below.

My question is why even there is exception occurring, and it is in catch block, but the method still goes to perform the line of return "SUCCESS". Hence, if you do not define return String in catch block, it always execute the return "SUCCESS", and forward to SUCCESS page that has uncompleted information.

I am kind of confused, is it supposed to stop in catch block? and the system can not reach the line of return "SUCCESS"? Anyone can help me on this topic?
Looks like it's not necessary to define return FAILURE in catch block.

Thanks a lot in advance.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Why would processing stop in a catch block?
I agree. Here's the link:
subject: struts2 execute return workflow
jQuery in Action, 3rd edition