But if i get a commit error for example a duplivate key it passes to the
catch statement in the final block and then it returns Action.ERROR . And
also it returns error as a param i debugged the code by attaching source but
the problem is it still dispatches to the success

Dave Newton-4 wrote:
> 
> --- oguzhan tortop <[EMAIL PROTECTED]> wrote:
>> but commit is in finally block. so it runs on every
>> condition even if you return  any value before it. 
> 
> ...but a duplicate key exception would happen on the
> commit, because Hibernate queues up its work, right? 
> 
> Unless you're running a commit in the action itself
> it's not going to throw until you commit in the
> interceptor. And when you commit you're returning the
> result of the action invocation, not Action.ERROR.
> 
> d.
> 
> 
> 
>  
> ____________________________________________________________________________________
> Never miss an email again!
> Yahoo! Toolbar alerts you the instant new Mail arrives.
> http://tools.search.yahoo.com/toolbar/features/mail/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-exception-problem-tf3525255.html#a9841683
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to