that's the way that works for me:
      <html:submit>
        <bean:message key="button.wizard.previous"/>
      </html:submit>

The tag's body is used as value...

hope this helps
Alexander

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 2:00 AM
To: [EMAIL PROTECTED]
Subject: submit button internationalization.



Has anyone come up with a cool way to internationalize a submit button 
using the <html:submit> tag?

<html:submit property="xmit" 
value="<%=org.apache.struts.util.RequestUtils.message(pageContext, 
org.apache.struts.action.Action.MESSAGES_KEY, 
org.apache.struts.action.Action.LOCALE_KEY,"button.save")%>"
styleClass="formField"/>


I was thinking about extending the html:submit tag to include an 
attribute   valueKey  and have that  set the value.


-Mark

Reply via email to