struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Desbois Arnaud" <Arnaud.Desb...@thomson.net>
Subject RE: [S2] message properties
Date Fri, 21 Dec 2007 14:00:12 GMT
But with the set tag, it doesn't work:

<s:set var="msg" value="%{getText('message.remove')}" >
	<s:param name="value" value="item.name" />
</s:set>


-----Message d'origine-----
De : Maxx [mailto:maxxyme@gmail.com] 
Envoyé : vendredi 21 décembre 2007 12:20
À : Struts Users Mailing List
Objet : Re: [S2] message properties

In a JSP, it's quite easy, you just have to use a nested <s:param>
inside the tag refering to your message, e.g.

	<s:text name="message.remove">
		<s:param name="value" value="item.name" />
	</s:text>
(of course if item is available through your action via a getItem()
method - same for property "name" on your "item")

For the Freemarker thing, I unfortunately don't know.

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


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


Mime
View raw message