Guys,

It took me some quite some time to understand how to pass a
dynamic value to a textfield label.
It appeared that I needed to use this strange notation: %{#var}
like this:

<c:set var="ro" value="qwe" scope="request"/>
<s:textfield name="username" label="%{#request.ro}" />

I haven't found any description that would list which
Struts2 tag attributes accept dynamic values and which
require 'force evaluation'.
The only resource that mentioned it was Dave Newton's letter
http://old.nabble.com/Re%3A-S2-tags---dynamic-attributes-p19292043.html

I really think that this notation must be documented
specifically on this page:
http://struts.apache.org/2.1.8.1/docs/ognl.html

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to