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

S:token does not generate any hidden value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.3.15.1
    • Fix Version/s: 2.3.20
    • Labels:
    • Environment:

      IBM AIX 6.1.0.0
      Websphere Application server 7.0.0.21
      Websphere Portal server 7.0.0.2

      Description

      Sometimes the "S:token" tag cannot generate hidden value on JSP which cause all form failed which have add token interceptor validation. Please advice if there is any particular scenario which will cause this issue

      Wrong:
      <FORM id=submitPrefernceId name=submitPrefernceId action=/wps/myportal/XXXXX method=post autocomplete="off">
      <INPUT type=hidden name="">
      <INPUT type=hidden name="">

      Correct :
      <FORM id=submitPrefernceId name=submitPrefernceId action=/wps/myportal/XXXX method=post autocomplete="off">
      <INPUT type=hidden value=token name=struts.token.name>
      <INPUT type=hidden value=2OMLV0WXN1QGPN9BVBYEB8Z9NHLF3RDI name=token>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chenlingreen chenlin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified