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

url tag, method attribute not evaluating expressions (ognl)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.8, 2.0.9, 2.0.10
    • 2.0.10, 2.1.0
    • Expression Language
    • None
    • WebSphere 6.1.0.9 on Windows. Also JBoss 4.0.5 on Windows. Only 2 tested so far, don't think this is an environment issue.

    • Important

    Description

      <s:url action="%

      {leftMenuLinks[#stat.index].action}

      " method="%

      {leftMenuLinks[#stat.index].actionMethod}

      "/>

      I have the above expression on my JSP. The action attribute correctly evaluates my expression and displays the value from the bean. The method attribute does not evaluate the expression. If I place the expression in an s:property or in the action attribute of the url tag it is evalated correctly and displayed. So I think the expression is valid.

      From the documentation I understand that the method attribute should evaluate expressions and so am assuming that this is a bug. Happy to be proven wrong if I should be using a different syntax to get expression evalation in this attribute.

      Many thanks.

      Attachments

        Activity

          People

            jholmes James Holmes
            mpetzsch Martin Petzsch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: