You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by he...@dnbnor.no on 2005/11/25 07:27:16 UTC

RE: Using message resources to specify value in an button

Hi

He asked for resourcebundle backed - not hardcoded. Frank has shown one of the possible ways of doing it.

In addition to fmt:message you can of course use bean:message (including also the "bundle" attribute if you have multiple modules for instance)

Hermod

-----Original Message-----
From: nitin mandolkar [mailto:nitinmandolkar@gmail.com]
Sent: Friday, November 25, 2005 7:22 AM
To: Struts Users Mailing List
Subject: Re: Using message resources to specify value in an
<html:submit> button


Hi Mon Cab

here is the example

<html:submit property="Submit" tabindex="3" value="Submit" />

And Equivalent Html code generated is like

<input type="submit" name="Submit" tabindex="3" value="Submit">

Thanks.
Nitin Mandolkar.

On 11/25/05, Mon Cab <fu...@yahoo.com> wrote:
> Does anyone know how to specify what is written on the
> submit button using message resources?  I thought it
> might be titleKey but when I tried to use that, it
> just labelled my submit button "submit".
>
>
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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


Re: Using message resources to specify value in an button

Posted by nitin mandolkar <ni...@gmail.com>.
Oh Yes

I am sorry.

-Ni3

On 11/25/05, hermod.opstvedt@dnbnor.no <he...@dnbnor.no> wrote:
> Hi
>
> He asked for resourcebundle backed - not hardcoded. Frank has shown one of the possible ways of doing it.
>
> In addition to fmt:message you can of course use bean:message (including also the "bundle" attribute if you have multiple modules for instance)
>
> Hermod
>
> -----Original Message-----
> From: nitin mandolkar [mailto:nitinmandolkar@gmail.com]
> Sent: Friday, November 25, 2005 7:22 AM
> To: Struts Users Mailing List
> Subject: Re: Using message resources to specify value in an
> <html:submit> button
>
>
> Hi Mon Cab
>
> here is the example
>
> <html:submit property="Submit" tabindex="3" value="Submit" />
>
> And Equivalent Html code generated is like
>
> <input type="submit" name="Submit" tabindex="3" value="Submit">
>
> Thanks.
> Nitin Mandolkar.
>
> On 11/25/05, Mon Cab <fu...@yahoo.com> wrote:
> > Does anyone know how to specify what is written on the
> > submit button using message resources?  I thought it
> > might be titleKey but when I tried to use that, it
> > just labelled my submit button "submit".
> >
> >
> >
> >
> >
> > __________________________________
> > Yahoo! Music Unlimited
> > Access over 1 million songs. Try it free.
> > http://music.yahoo.com/unlimited/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that the DnB NOR Group
> cannot accept any payment orders or other legally binding correspondence with
> customers as a part of an email.
>
> This email message has been virus checked by the virus programs used
> in the DnB NOR Group.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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