: 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:
> >
> &
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"
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 (
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
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
5 matches
Mail list logo