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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.11.2, 2.1.2
    • 2.1.3
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: