[ 
https://issues.apache.org/struts/browse/WW-3338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47099#action_47099
 ] 

Musachy Barroso commented on WW-3338:
-------------------------------------

I agree this is confusing, some attributes are expected to be string and some 
are expected to be values, the most common case is used on each, when you are 
in the most common case it just feels natural and not verbose, when you are not 
in the mos common case, then it feels verbose and weird. I am not sure what can 
be done, as for myself I always use %{} so I dont have to remember which one is 
which.

> <s:hidden> tag should interpret its value attribute same as the other tags do.
> ------------------------------------------------------------------------------
>
>                 Key: WW-3338
>                 URL: https://issues.apache.org/struts/browse/WW-3338
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Tags
>    Affects Versions: 2.1.8
>            Reporter: Andreas Krüger
>
> According to http://struts.apache.org/2.1.8.1/docs/tag-syntax.html , any 
> attribute value="" is interpreted for OGNL.
> This is not true for <s:hidden ... value="myprop" /> , which will use the 
> literal string "myprop".
> To get it to call my bean's getMyprop(), I need to say <s:hidden ... 
> value="%{myprop}" />
> Would be nice if this could be streamlined, so s:hidden conforms to the 
> general principle.
> As that change might break existing code, it might be more easily asked for 
> than done.

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

Reply via email to