executing twice of action execute method
----------------------------------------
Key: WW-2341
URL: https://issues.apache.org/struts/browse/WW-2341
Project: Struts 2
Issue Type: Bug
Components: Core Actions
Affects Versions: 2.0.11, 2.0.9
Environment: O.S. windows xp professional (Italian), Tomcat 5.0.27,
JDK 1.5.0.12
Reporter: Andrea Gigliotti
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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.