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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment