struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Newton (JIRA)" <>
Subject [jira] Commented: (WW-2015) url tag, method attribute not evaluation expressions (ognl)
Date Thu, 28 Jun 2007 12:38:27 GMT


Dave Newton commented on WW-2015:

Adding an "findStringOrEval" (or something) method to org.apache.struts2.components.Component
and using it around and about is one possible solution; it would check for %{} (as findValue)
and eval if present otherwise return contents.

> url tag, method attribute not evaluation expressions (ognl)
> -----------------------------------------------------------
>                 Key: WW-2015
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.8
>         Environment: WebSphere on Windows.  Also JBoss 4.0.5 on Windows.  Only
2 tested so far, don't think this is an environment issue.
>            Reporter: Martin Petzsch
>            Priority: Minor
> <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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message