You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Martin Petzsch (JIRA)" <ji...@apache.org> on 2007/06/28 12:07:26 UTC

[jira] Created: (WW-2015) url tag, method attribute not evaluation expressions (ognl)

url tag, method attribute not evaluation expressions (ognl)
-----------------------------------------------------------

                 Key: WW-2015
                 URL: https://issues.apache.org/struts/browse/WW-2015
             Project: Struts 2
          Issue Type: Bug
          Components: Expression Language
    Affects Versions: 2.0.8
         Environment: WebSphere 6.1.0.9 on Windows.
            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.


[jira] Updated: (WW-2015) url tag, method attribute not evaluating expressions (ognl)

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2015:
-----------------------------

    Affects Version/s: 2.0.10
                       2.0.9
        Fix Version/s:     (was: 2.0.10)
                       2.0.11

Moving to 2.0.11 in preparation for 2.0.10 release.

> url tag, method attribute not evaluating expressions (ognl)
> -----------------------------------------------------------
>
>                 Key: WW-2015
>                 URL: https://issues.apache.org/struts/browse/WW-2015
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.8, 2.0.9, 2.0.10
>         Environment: 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.
>            Reporter: Martin Petzsch
>            Assignee: James Holmes
>            Priority: Minor
>             Fix For: 2.0.11
>
>
> <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.


[jira] Updated: (WW-2015) url tag, method attribute not evaluation expressions (ognl)

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-2015:
---------------------------

    Fix Version/s: Future

Setting Fix Version to "future" for issues without a set fix version. 


> url tag, method attribute not evaluation expressions (ognl)
> -----------------------------------------------------------
>
>                 Key: WW-2015
>                 URL: https://issues.apache.org/struts/browse/WW-2015
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.8
>         Environment: 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.
>            Reporter: Martin Petzsch
>            Priority: Minor
>             Fix For: Future
>
>
> <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.


[jira] Commented: (WW-2015) url tag, method attribute not evaluation expressions (ognl)

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41301 ] 

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: https://issues.apache.org/struts/browse/WW-2015
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.8
>         Environment: 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.
>            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.


[jira] Updated: (WW-2015) url tag, method attribute not evaluation expressions (ognl)

Posted by "Martin Petzsch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Petzsch updated WW-2015:
-------------------------------

    Environment: 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.  (was: WebSphere 6.1.0.9 on Windows.)

Added JBoss and Environment Description

> url tag, method attribute not evaluation expressions (ognl)
> -----------------------------------------------------------
>
>                 Key: WW-2015
>                 URL: https://issues.apache.org/struts/browse/WW-2015
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.8
>         Environment: 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.
>            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.


[jira] Resolved: (WW-2015) url tag, method attribute not evaluating expressions (ognl)

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes resolved WW-2015.
------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.11)
                   2.1.0
                   2.0.10

Thanks for the heads up!

Fixed on the 2_0_X branch in SVN revision 566730.

Fixed on the trunk (Struts 2.1) in SVN revision 566729.

> url tag, method attribute not evaluating expressions (ognl)
> -----------------------------------------------------------
>
>                 Key: WW-2015
>                 URL: https://issues.apache.org/struts/browse/WW-2015
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.8, 2.0.9, 2.0.10
>         Environment: 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.
>            Reporter: Martin Petzsch
>            Assignee: James Holmes
>            Priority: Minor
>             Fix For: 2.0.10, 2.1.0
>
>
> <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.


[jira] Updated: (WW-2015) url tag, method attribute not evaluating expressions (ognl)

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2015:
-----------------------------

    Summary: url tag, method attribute not evaluating expressions (ognl)  (was: url tag, method attribute not evaluation expressions (ognl))

> url tag, method attribute not evaluating expressions (ognl)
> -----------------------------------------------------------
>
>                 Key: WW-2015
>                 URL: https://issues.apache.org/struts/browse/WW-2015
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.8
>         Environment: 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.
>            Reporter: Martin Petzsch
>            Assignee: James Holmes
>            Priority: Minor
>             Fix For: 2.0.10
>
>
> <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.


[jira] Updated: (WW-2015) url tag, method attribute not evaluation expressions (ognl)

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2015:
-----------------------------

    Fix Version/s:     (was: Future)
                   2.0.10
         Assignee: James Holmes

> url tag, method attribute not evaluation expressions (ognl)
> -----------------------------------------------------------
>
>                 Key: WW-2015
>                 URL: https://issues.apache.org/struts/browse/WW-2015
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.8
>         Environment: 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.
>            Reporter: Martin Petzsch
>            Assignee: James Holmes
>            Priority: Minor
>             Fix For: 2.0.10
>
>
> <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.