Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3404

Executing method or action from <s:submit /> tag doesn't work anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.1.8.1
    • None
    • Plugin - Dojo Tags
    • None
    • OS: Windows XP & Windows 7, Tomcat V6

    Description

      After upgrading from 2.1.6 to 2.1.8.1 execution from method or action at <s:submit /> Tag doesn't work anymore. After I put the method into the <s:form /> tag it works.

      This is one example which works under 2.1.6 but not in 2.1.8.1:

      <s:submit method="editLand" value="Speichern" onclick="refreshParent()" />

      Workaround:
      Create an action to execute the method in action class and put the param action into <s:form /> tag:

      <s:form action="editLand" method="POST" acceptcharset="ISO-8859-1" >
      <table class="form">
      <s:textfield name="lkz" label="Lkz" />
      <s:textfield name="landName" label="Land" />
      <tr>
      <td class="button" colspan="2">
      <s:submit value="Speichern" onclick="refreshParent()" />
      </td>
      </tr>
      </table>
      </s:form>

      Attachments

        Activity

          People

            Unassigned Unassigned
            mswati Thomas Lang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: