struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Nine <todd.n...@gmail.com>
Subject Re: <html:text ... value="<bean:message .../>"/>???
Date Fri, 11 Feb 2005 13:48:37 GMT
What if you did something like this?

<bean:define id="rcptVal">
    <bean:message key="admin.msg.rcpt"/>
</bean:define>


<html:text property"rcpt" value="rcptVal"/>

Todd

On Fri, 11 Feb 2005 13:03:37 +0200, Andrew Stepanenko
<andrews@ceis.tane.edu.ua> wrote:
> Thanks for your reply, Nigel!
> 
> I've already tried that previously and but the text field remains empty...
> 
> 
> Nigel Furber wrote:
> 
> >Andrew
> >Try something like...
> ><html:text property="rcpt">
> ><bean:message key='admin.msg.rcpt'/>"
> ></html:text>
> >Regards
> >
> >Nigel Furber
> >Boxford Park Ltd
> >[mailto:Nigel.Furber@spamlessBoxfordPark.com]
> >(44) 1204 692579
> >Remove "spamless" from email address
> >
> >-----Original Message-----
> >From: Andrew Stepanenko [mailto:andrews@ceis.tane.edu.ua]
> >Sent: 11 February 2005 10:23
> >To: Struts Users Mailing List
> >Subject: <html:text ... value="<bean:message .../>"/>???
> >
> >
> >Hello, all!
> >
> >Can anybody please tell why I can't get <html:text> tag to display a
> >message resource as its value so that text field appear on a page with
> >already internalized string?
> >
> ><html:text property="rcpt" value="<bean:message key='admin.msg.rcpt'/>"
/>
> >
> >The problem is that the string "<bean:message key='admin.msg.rcpt'/>" is
> >interpreted as a string and not as a tag and thus I get <bean:message
> >key='admin.msg.rcpt'/> in my text field instead of the internalized string.
> >
> >If I don't use action form and simply provide <input type="text"
> >value="<bean:message key='admin.msg.rcpt'/>"> everything works fine and
> >I can see the proper internalized string in the text field. But I need
> >to use action forms.
> >
> >Thanks in advance,
> >
> >
> >
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message