This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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?
 
Don't get me started about those stupid light bulbs.
 
subject: struts2 execute return workflow
 
Similar Threads
Struts Validation Framework Problem...........Do Help
change password
try, catch,finally
help on catch block