Wes:

That worked, thank you.

        Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.  

> -----Original Message-----
> From: Wes Wannemacher [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 09, 2008 11:07 PM
> To: Struts Users Mailing List
> Subject: RE: How to output local variable as textfield label
> 
> On Tue, 2008-12-09 at 22:58 -0600, Neil Aggarwal wrote:
> > Wes:
> > 
> > I changed my code to this:
> > 
> > <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%>
> > 
> > <% 
> > String label = "Address";
> > if( request.getAttribute("requireFullAddress") != null )
> >     label += "*";
> > request.setAttribute("label",label);
> > %>
> > <s:textfield label="%{label}" name="address.line1" />
> > 
> > I still get an empty label.
> > 
> > Any ideas why this did not work?
> > 
> 
> 
> Yes. Try this - 
> 
> <s:textfield label="%{#attr.label}" ... />
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to