struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitc...@telocity.com>
Subject RE: localize the submit buuton
Date Wed, 19 Jun 2002 22:41:14 GMT
ApplicationResources.properties
---------------------------------
mypage.submit.label=
mypage.cancel.label=

ApplicationResources_fr.properties
---------------------------------
mypage.submit.label=soumettez
mypage.cancel.label=annulation

ApplicationResources_de.properties
---------------------------------
mypage.submit.label=reichen Sie ein
mypage.cancel.label=Löschen



in jsp......

<html:submit property="action">
  <bean:message key="mypage.submit.label"/>
</html:submit>

This will put the i18n value into your form.setAction(),
then in your action class,
compare the localized action to the form.getAction()

Hope that helps!!!


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://struts-atlanta.open-tools.org

> -----Original Message-----
> From: Billy Ng [mailto:evebill8@hotmail.com]
> Sent: Wednesday, June 19, 2002 5:59 PM
> To: Struts Users Mailing List
> Subject: localize the submit buuton
>
>
> if I use taglib to generate the submit button
>
> <html:submit property="submit" value="Enter"/>
>
> how I can localize the button's value with using <bean:message> tag?
>
> Billy Ng
>


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


Mime
View raw message