Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2945

<html:link> tag does not submit <html:hidden> field values

    XMLWordPrintableJSON

    Details

    • Type: Temp
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 1.2.9
    • Fix Version/s: None
    • Component/s: Tag Libraries
    • Labels:
      None
    • Environment:
      XP
      Tomcat 5.5
      Java 1.5

      Description

      The <html:hidden> field values associated with an <html:form> are not added to the request when a submit is performed via <html:link>

      For example:

      <html:form action="/MyAction">

      <html:hidden property="myID" value="1"/>

      <html:link action="/MyAction">Method 1</html:link>
      <html:submit>Method 2</html:submit>

      </html:form>

      "Method 1" link clicked:

      • downstream action mapped by "/MyAction" returns null in response to request.getParameter("myID");

      "Method 2" button clicked:

      • downstream action mapped by "/MyAction" returns "1" in response to request.getParameter("myID");

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mjb101@boltblue.com Mike Barlow
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: