struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrice" <ppich...@nerim.net>
Subject Re: bean:messages tag
Date Tue, 17 Dec 2002 11:04:30 GMT
Tags are interprated after scriplets, that's why you can't use tags inside
scriplets.
In struts 1.1, you can do:
<bean:define id="aKey"><bean:message key="form.maxNumber"/></bean:define>
<% int i = Integer.parseInt(aKey); %>

Hope it helps
Patrice

----- Original Message -----
From: "Richmond Te" <richmondte@yahoo.com>
To: <struts-user@jakarta.apache.org>
Sent: Tuesday, December 17, 2002 5:59 AM
Subject: bean:messages tag


> i am using <bean:message key='form.maxNumber'/> fine
> but i need to assign that key value to my jsp
> scriptlet something like ie.
> <%
> String aKey = "<bean:message key='form.maxNumber'/>";
> int i = Integer.parseInt(aKey);
> %>
>
> but the "aKey" contains the text "<bean:message
> key='form.maxNumber'/>" instead of the value it
> represents when declared outside a scriptlet..
>
> thanks
> richmond
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>


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


Mime
View raw message