struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Sexton" <gsex...@mhsoftware.com>
Subject RE: Newbie Help html:text conditional arguments
Date Fri, 25 Mar 2005 16:45:24 GMT
The readonly attribute is not output.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -----Original Message-----
> From: Rick Reumann [mailto:struttin@reumann.net] 
> Sent: Friday, March 25, 2005 9:42 AM
> To: Struts Users Mailing List
> Subject: Re: Newbie Help html:text conditional arguments
> 
> What is it doing wrong? Getting errors? What does the 
> resulting html src 
> code look like?
> 
> George Sexton wrote the following on 3/24/2005 10:45 PM:
> > I'm running into a problem with Struts, and I admit I'm a 
> newbie to it.
> > 
> > I have a line in a JSP file:
> > 
> > <html:text property="event_date_fmt" />
> > 
> > What I'd like to do is conditionally have readonly set:
> > <%
> > request.setAttribute("my_attr","true");
> > %>
> > <html:text readonly="${my_attr}" property="event_date_fmt" />
> > 
> > But it doesn't seem to work. I'm doing something similar with JSTL
> > FMT:MESSAGE. 
> > 
> > What is it I'm doing wrong?
> > 
> > 
> > George Sexton
> > MH Software, Inc.
> > http://www.mhsoftware.com/
> > Voice: 303 438 9585
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> 
> 
> -- 
> Rick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


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


Mime
View raw message