struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giglian <>
Subject Struts 2.0.11 executing twice of action execute method
Date Fri, 30 Nov 2007 14:35:42 GMT

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
All methods have the same program logic except for the sql statement
Really I don't know what the reason can be.
Please help me.
Thanks in advance

View this message in context:
Sent from the Struts - Dev mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message