You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by " (¯`·.k ! k !.·´¯)" <g_...@yahoo.com> on 2008/06/01 14:44:18 UTC

How to add Key to attribute value

hi .. i m new to Struts and using struts 1.2.9 
&nbsp;
i have a messges in messege-resource.properties and i want to show that in a tag attribute value how i can do that ???
&nbsp;
&lt;html:submit value="here i wnt the messge"/&gt;

i know that &lt;bean:message key="key.name"/&gt; but this doesnt works inside the attribute ... 
&nbsp;
(tag inside tag) ... 
&nbsp;
so how to do that ???
&nbsp;
waiting for replies .......
&nbsp;
thanx


Re: How to add Key to attribute value

Posted by Laurie Harper <la...@holoweb.net>.
(¯`·.k ! k !.·´¯) wrote:
> hi .. i m new to Struts and using struts 1.2.9 

You might want to look at upgrading from 1.2.9 (which is beta) to 1.3.9, 
which is a GA release.

> i have a messges in messege-resource.properties and i want to show that in a tag attribute value how i can do that ???
> &nbsp;
> &lt;html:submit value="here i wnt the messge"/&gt;
> 
> i know that &lt;bean:message key="key.name"/&gt; but this doesnt works inside the attribute ... 
> &nbsp;
> (tag inside tag) ... 
> &nbsp;
> so how to do that ???

One possibility:

<bean:define id="msg"><bean:message key="key.name"/></bean:define>
<s:submit value="${msg}" ...

L.

PS, please fix your mail client to send plain-text messages


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