alt="%{getText('key')}"

 ____________________________________________ 
____________________________________________



----- Message d'origine ----
De : Tom Pop <tom....@email.cz>
À : Struts Users Mailing List <user@struts.apache.org>
Envoyé le : Mardi, 27 Janvier 2009, 17h26mn 25s
Objet : struts2: resource bundle messages

Hello,

I can get localised messages in JSP like this:

<s:text name="key" />

How to do the same and assign the text to variable like this:

<%
    String text = getText("key");
%>

So - how to get message from resource bundle in JSP java code?
I can then put it for example to ALT attribute of image tag.

Thanks.
Tom

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




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

Reply via email to