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

The anchor parameter in the url tag does not evaluate OGNL expression.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.11.2, 2.1.2
    • Fix Version/s: 2.1.3
    • Labels:
      None
    • Environment:

      Tomcat 6.0.16 on Windows Vista

      Description

      Suppose you have this:

      <s:url var="showEmployee" action="ShowEmployee" anchor="%

      {employee.lastName}">
      <s:param name="id" value="employee.id"/>
      </s:url>

      Struts2 generates:

      ShowEmployee.action?id=1234#%{employee.lastName}

      The OGNL expression in the anchor attribute is rendered literally.

        Attachments

        1. WW-2783-patch.txt
          2 kB
          Ralf Fischer

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              druan Daniel Ruan
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: