If I don't remember wrong, you cannot nest %{} in the same expression. Try:

%{getText('status.' +name())}

musachy

On Fri, Jan 2, 2009 at 11:13 AM, Tom Pop <tom....@email.cz> wrote:
> Hello,
>
> I have these keys in resources:
>
> status.active=Active
> status.done=Done
>
> I have enum instances for each status in list and want to display it in 
> select control:
>
> <s:select name="item.status" list="statusList" listKey="name()" 
> listValue="%{getText('status.%{name()}')}" />
>
> This works except of the listValue parameter.
> This works:
> listValue="%{getText('status.active')}"
> listValue="name()"
>
> but how can I parametrize the resource key with the value of enum item?
>
> Thanks a lot.
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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

Reply via email to