Pretty straight forward tutorial: http://t.wits.sg/2008/06/23/howto-struts-2-i18n/
Best regards, Felipe Fraga On Thu, Feb 5, 2009 at 5:29 PM, Emi Lu <em...@encs.concordia.ca> wrote: > Hi Dave, > >>> (3) but I do not know how jsp can recognize "package.properties"? >> >> You're mis-understanding how the text is retrieved from the JSP: the JSP >> is calling the action's getText(...) method. >> >> Are you accessing the JSP directly, or through an action? > > I am new to struts2. I tried to use getText directly in JSP. Is it possible > that I can use getText() to read values from packages.properties? > > Basically, in packages.properties > message.info=value of the info > > > > in jsp, I'd like to display > <s:textfield value="getText('message.info')" /> > > > Thanks a lot! > -- > Lu Ying > > --------------------------------------------------------------------- > 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