You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Bosmans <pe...@khlim.be> on 2003/07/16 14:30:15 UTC

why no message resources for value

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


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


Re: why no message resources for value

Posted by Konstadinis Euaggelos <Va...@eurodyn.com>.
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>.
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


Re: why no message resources for value

Posted by "Prashanth.S" <su...@yahoo.com>.
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!

[SYNTAX] embedding struts tag in out.write problem

Posted by Yansheng Lin <ya...@isogis.com>.
Hi, I am having trouble displaying a struts tag inside of out.write().

<code>
<% if (session.getAttribute("something").equals("tis")) {
  out.write("<logic:equal name='dull'> ");
} %>

Output is un-evaluated <logic:equal> statement.  Anyone knows where the problem
is?

Thanks!




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