wood burning stoves 2.0*
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
Author

struts2 execute return workflow

huali ouyang
Greenhorn

Joined: Apr 11, 2005
Posts: 5
In each xxxAction.java, 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
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Why would processing stop in a catch block?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts2 execute return workflow