You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ted Husted (JIRA)" <ji...@apache.org> on 2007/11/30 13:53:34 UTC

[jira] Resolved: (WW-2341) executing twice of action execute method

     [ https://issues.apache.org/struts/browse/WW-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted resolved WW-2341.
----------------------------

    Resolution: Not A Problem
      Assignee: Ted Husted

The best place to post a message like the Struts user list. 

 * http://www.nabble.com/Struts---User-f206.html
 * http://struts.apache.org/mail.html

(The issue tracker is not intended a support forum, but as a development TODO list.)



> 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.9, 2.0.11
>         Environment: O.S. windows xp professional (Italian), Tomcat 5.0.27, JDK 1.5.0.12
>            Reporter: Andrea Gigliotti
>            Assignee: Ted Husted
>
> 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.