You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by St...@national.com.au on 2003/04/02 08:48:02 UTC

Re: bean message as button label

Not sure if it makes a difference but we do this:

<html:submit property="myButton"><bean:message  key="buttons.english.push
"/></html:submit>

And it works fine.

Give it a try.


Regards,
Steve Akins
Team Leader, Frameworks, J2EE Engineering
Development Centre
Financial Services Australia Technology


( +61 3 8641 2846 2 +61 3 8641 4152 : steve_akins@national.com.au


National Australia Bank Limited
4th Floor/ 500 Bourke St
Melbourne, Victoria 3000


|---------+---------------------------->
|         |           "koen boutsen"   |
|         |           <koenboutsen@lyco|
|         |           s.com>           |
|         |                            |
|         |           02/04/2003 16:48 |
|         |           Please respond to|
|         |           "Struts Users    |
|         |           Mailing List"    |
|         |                            |
|---------+---------------------------->
  >--------------------------------------------------------------------------------------------------------------|
  |                                                                                                              |
  |       To:       "Struts Users Mailing List" <st...@jakarta.apache.org>                                 |
  |       cc:                                                                                                    |
  |       Subject:  bean message as button label                                                                 |
  >--------------------------------------------------------------------------------------------------------------|




I want to use a value in my ApplicationResources.properties as a label on a
button in my jsp, so that I can switch the text on the button, depending on
the Locale used.  I used the following code :
<html:submit property="myButton" value='<bean:message key
="buttons.english.push"/>' />

This gives the text: bean:message key on my button, and not the wanted text
in my .properties file. Can anyone help me ?

Thanks

Koen Boutsen



_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

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






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