You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Juan Espinosa <pc...@adinet.com.uy> on 2007/03/07 16:27:23 UTC
I18n
Hi im having problems with localization of a jsp page, i call the jsp
directly, not throw an action.
Im using this tag the localize a text <s:text
name="%{getText('customer.security.login.title')}" />
Any suggestions ??? What im doing wrong ???
Regards,
Juan
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.7/713 - Release Date: 07/03/2007
9:24
Re: I18n
Posted by Dave Newton <ne...@yahoo.com>.
--- Christopher Schultz wrote:
> Juan Espinosa wrote:
> > Hi im having problems with localization of a jsp
> page, i call the jsp
> > directly, not through an action.
> >
> > Im using this tag the localize a text <s:text
> > name="%{getText('customer.security.login.title')}"
> />
>
> I'm largely ignorant of JSP taglibs... is getText a
> struts-specific tag?
It's a method, not a tag.
> If so, then you will probably have to send your
> requests through the ActionServlet in order to have
> the request set up properly to allow you
> to make calls like this.
It's an S2 method.
But I do agree (in spirit) that trying use the JSP
from an ActionSupport would be a good sanity-check.
d.
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: I18n
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Juan,
Juan Espinosa wrote:
> Hi im having problems with localization of a jsp page, i call the jsp
> directly, not through an action.
>
> Im using this tag the localize a text <s:text
> name="%{getText('customer.security.login.title')}" />
I'm largely ignorant of JSP taglibs... is getText a struts-specific tag?
If so, then you will probably have to send your requests through the
ActionServlet in order to have the request set up properly to allow you
to make calls like this.
I had this problem long ago and it turned out that a trip through the
ActionServlet was all I needed to get everything working.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF7tng9CaO5/Lv0PARAuRlAKCmzGiCybiLYf15wATfnvOGDkxMlACeIoRJ
n1dEw7/LaF8fwRZQVIG7y4I=
=+KNl
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org