You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mon Cab <fu...@yahoo.com> on 2005/11/25 07:04:08 UTC
Using message resources to specify value in an button
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
Re: Using message resources to specify value in an button
Posted by Wendy Smoak <ws...@gmail.com>.
On 11/24/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".
Try putting it in the body of the submit tag. (Between <submit> and </submit>.)
--
Wendy
---------------------------------------------------------------------
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>.
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
Re: Using message resources to specify value in an button
Posted by Mon Cab <fu...@yahoo.com>.
Thanks Everyone for your help with this.
It's working now. I opted to nesting <bean:message>
in the submit tag), per Wendy/Frank/Hermod.
--- "Frank W. Zammetti" <fz...@omnytex.com> wrote:
> Wendy Smoak wrote:
> > (Does no one trim their posts anymore?! That
> thread is nearly
> > impossible to follow with all the
> quoted-and-re-quoted text.)
>
> I admit I rarely trim a thread when I reply... I
> personally prefer being
> able to look back immediately and see what someone
> said a few posts back
> without having to dig something out of my "deleted"
> folder or the list
> archives. True, sometimes reading an untrimmed
> "post trace" is harder
> than the alterntive :)
>
> > --
> > Wendy
>
> Frank
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
>
>
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
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 "Frank W. Zammetti" <fz...@omnytex.com>.
Wendy Smoak wrote:
> (Does no one trim their posts anymore?! That thread is nearly
> impossible to follow with all the quoted-and-re-quoted text.)
I admit I rarely trim a thread when I reply... I personally prefer being
able to look back immediately and see what someone said a few posts back
without having to dig something out of my "deleted" folder or the list
archives. True, sometimes reading an untrimmed "post trace" is harder
than the alterntive :)
> --
> Wendy
Frank
---------------------------------------------------------------------
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 Wendy Smoak <ws...@gmail.com>.
On 11/24/05, Frank W. Zammetti <fz...@omnytex.com> wrote:
> I had to ask this same question a day or two ago actually :) Here's one
> of the two provided solutions... this one seems to me the more
> straight-forward...
>
> <html:submit><fmt:message key="labels.myButtonText" /></html:submit>
Here's the thread:
http://www.nabble.com/JSTL-messages-problem-t600572.html
(Does no one trim their posts anymore?! That thread is nearly
impossible to follow with all the quoted-and-re-quoted text.)
--
Wendy
---------------------------------------------------------------------
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 "Frank W. Zammetti" <fz...@omnytex.com>.
I had to ask this same question a day or two ago actually :) Here's one
of the two provided solutions... this one seems to me the more
straight-forward...
<html:submit><fmt:message key="labels.myButtonText" /></html:submit>
The other approach involved getting the button's text into a variable
via JSTL's <c:set> tag and using that in conjunction with the HTML-EL
taglib. Details can be dug out of the list archives without much
trouble. But, like I said, to me the above answer was quite a bit simpler.
Frank
Mon Cab 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
>
>
>
> .
>
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: fzammetti@hotmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org