Thanks - and in for example tiles tag? This tag doesn't accept %{getText(...)} and I can't put there <s:text.../>, I can only put there <%= ... %> with variable...
Tom > ------------ Původní zpráva ------------ > Od: François Rouxel <rouxe...@yahoo.com> > Předmět: Re : struts2: resource bundle messages > Datum: 27.1.2009 23:43:55 > ---------------------------------------- > if you are in a struts tag. > > title="%{getText('key')}" > > else you can use > > title="<s:text name="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 > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org