AW: submit button internationalization.

2001-10-26 Thread Bernhard J. Hirschmann


Thank you very much! THIS is I was looking for. Great!


> -Ursprungliche Nachricht-
> Von: Jonathan R. Okin [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 25. Oktober 2001 15:02
> An: [EMAIL PROTECTED]
> Betreff: Re: submit button internationalization.
> 
> 
> I could be wrong, but this is what I use and it doesn't get
> much simpler:
> 
> 
> 
> 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  tag?
> > 
> >  > 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. OkinEmail: [EMAIL PROTECTED]
> President, Cambridge Consulting, Inc.   Phone: 973-763-8239
> 74 Boyden Avenue Maplewood, NJ 07040Alternate 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
> 



AW: submit button internationalization.

2001-10-25 Thread Bernhard J. Hirschmann


Hello Mark,

good to know you have that problem too... ;)
I was asking something about this yesterday as well - without response.

And much better so see that there's something like
org.apache.struts.util.RequestUtils.message
This would make my solution much more easy. I've gone the hard way with
adding a reference to the MessageResources to the context...

I would appreciate an extention of the html:submit tag!

Regards,
Bernhard


> -Ursprungliche Nachricht-
> Von: Mark Gordon [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 25. Oktober 2001 02:00
> An: [EMAIL PROTECTED]
> Betreff: submit button internationalization.
>
>
>
> Has anyone come up with a cool way to internationalize a submit button
> using the  tag?
>
>  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
>
>