I could be wrong, but this is what I use and it doesn't get
much simpler:

<html:submit property="xxx"><bean:message key="yyy"/></html:submit>

where xxx = the value of the button to evaluate in your action class
and yyy = the message key in your ApplicationResourses.properties file

-Jonathan

--- Mark Gordon <[EMAIL PROTECTED]> wrote:
> 
> 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
> 


=====
_____________________________________________________________________
Jonathan R. Okin                        Email: [EMAIL PROTECTED]
President, Cambridge Consulting, Inc.   Phone: 973-763-8239
74 Boyden Avenue Maplewood, NJ 07040    Alternate Phone: 973-763-8260

Maine:
Frenchman Bay, Winter Harbor, ME 04693  Phone: 207-963-2355

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

Reply via email to