You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Konstadinis Euaggelos <Va...@eurodyn.com> on 2003/02/16 15:30:19 UTC
Re: why no message resources for value
Peter if you want to set alt, title in struts-tag then <bean:message
key="app.title"/> want work
you must do:
<bean:define id="xxxx"><bean:message key='app.title'></bean:define>
than you can use it as scriptlet ...
<html:button property="previous" styleClass="Button"
title="<%="["+xxxx+"]"%>" ">
<bean:message bundle="BUTTON_RESOURCE_KEY"
key="button.previous"/>
</html:button>
----- Original Message -----
From: "Peter Bosmans" <pe...@khlim.be>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, July 16, 2003 2:48 PM
Subject: Re: why no message resources for value
> That works great. Thank u
>
> Prashanth.S wrote:
> > Hi,
> > I thing below code works for u.
> >
> > <html:submit><bean:message key="app.title"/></html:submit>
> > where
> > app.title
> > [u define in resource bundle]
> >
> > Thanks
> > Prashanth
> >
> > Peter Bosmans <pe...@khlim.be> wrote:
> > I was wondering why the value in a html:submit couldn't be set with a
> > message resource value (like titleKey and altKey).
> > This means that i could never use i18n for the submit button ?
> >
> > greetings
> >
> > Peter
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: why no message resources for value
Posted by Peter Bosmans <pe...@khlim.be>.
Vangelis, the following works fine here :
<html:submit titleKey="stageadmin.titleviewlink"><bean:message
key="stageadmin.valueviewlink"/></html:submit>
so why make it so difficult, i've not enough experience to understand
your proposition. (especially title="<%="["+xxxx+"]"%>" ")
But thanks anyway for your helpfull hand.
Konstadinis Euaggelos wrote:
> Peter if you want to set alt, title in struts-tag then <bean:message
> key="app.title"/> want work
> you must do:
>
> <bean:define id="xxxx"><bean:message key='app.title'></bean:define>
>
> than you can use it as scriptlet ...
>
> <html:button property="previous" styleClass="Button"
> title="<%="["+xxxx+"]"%>" ">
> <bean:message bundle="BUTTON_RESOURCE_KEY"
> key="button.previous"/>
> </html:button>
>
>
> ----- Original Message -----
> From: "Peter Bosmans" <pe...@khlim.be>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Wednesday, July 16, 2003 2:48 PM
> Subject: Re: why no message resources for value
>
>
>
>>That works great. Thank u
>>
>>Prashanth.S wrote:
>>
>>>Hi,
>>>I thing below code works for u.
>>>
>>><html:submit><bean:message key="app.title"/></html:submit>
>>>where
>>>app.title
>>>[u define in resource bundle]
>>>
>>>Thanks
>>>Prashanth
>>>
>>>Peter Bosmans <pe...@khlim.be> wrote:
>>>I was wondering why the value in a html:submit couldn't be set with a
>>>message resource value (like titleKey and altKey).
>>>This means that i could never use i18n for the submit button ?
>>>
>>>greetings
>>>
>>>Peter
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>---------------------------------
>>>Do you Yahoo!?
>>>SBC Yahoo! DSL - Now only $29.95 per month!
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org