struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstadinis Euaggelos" <Vangelis.Konstanti...@eurodyn.com>
Subject Re: why no message resources for value
Date Sun, 16 Feb 2003 14:30:19 GMT
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" <peter.bosmans@khlim.be>
To: "Struts Users Mailing List" <struts-user@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 <peter.bosmans@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


Mime
View raw message