struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: How to add Key to attribute value
Date Tue, 03 Jun 2008 19:26:15 GMT
(¯`·.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


Mime
View raw message