struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giglian <andrea.giglio...@smurfitkappa.it>
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
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/Struts-2.0.11-executing-twice-of-action-execute-method-tf4913457.html#a14065663
Sent from the Struts - Dev mailing list archive at Nabble.com.


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


Mime
View raw message