You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by giglian <an...@smurfitkappa.it> on 2007/11/30 14:31:39 UTC

executing twice of action execute method

My web app have an action to delete one row in a MS Access table (access
though sun.jdbc.odbc.JdbcOdbcDriver).
The method return the number of rows deleted.
The first time it's executed, it return the right number of deleted rows: 1.
The action after reading the method result, it return SUCCESS, but rather to
call the result page (jsp page), the controller, with no reason, call once
again, the same method.
This time, of course, it return 0 because the row is already deleted and the
action return ERROR.
Finally, even if the delete operation execute succesfully, the web app
display the error message.
I have other action with methods that insert and update rows and they work
fine!
All methods have the same program logic except for the sql statement
(INSERT, UPDATE, DELETE, ...).
Really I don't know what the reason can be.
Please help me.
Thanks in advance

Andrea
-- 
View this message in context: http://www.nabble.com/executing-twice-of-action-execute-method-tf4909517.html#a14057256
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org