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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

