RE: How to output local variable as textfield label

2008-12-09 Thread Neil Aggarwal
: 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: > > > &

RE: How to output local variable as textfield label

2008-12-09 Thread Wes Wannemacher
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"

RE: How to output local variable as textfield label

2008-12-09 Thread Neil Aggarwal
emacher [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2008 10:39 PM > To: Struts Users Mailing List > Subject: Re: How to output local variable as textfield label > > After constructing the String, set it as an attribute on one of the > scopes that OGNL can search (

Re: How to output local variable as textfield label

2008-12-09 Thread Wes Wannemacher
After constructing the String, set it as an attribute on one of the scopes that OGNL can search (page scope is probably sufficient for this). http://struts.apache.org/2.x/docs/ognl.html -Wes On Tue, 2008-12-09 at 22:34 -0600, Neil Aggarwal wrote: > Hello: > > I need to compose the label for a

How to output local variable as textfield label

2008-12-09 Thread Neil Aggarwal
Hello: I need to compose the label for a textfield. Here is my JSP code: <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%> <% String label = "Address"; if( request.getAttribute("requireFullAddress") != null ) label += "*"; %> This does not work, I get an empty label on the page. I a