You forgot the quotes around your expression. Try:
<html:text readonly="<%=isReadOnly%>" property="blah"/>
Also, if you want to avoid the expression try struts-el:
<html-el:text readonly="${isReadOnly}" property="blah"/>
Quoting helen chen <[EMAIL PROTECTED]>:
> Why do you just use label ( <html:label> ) inside your jsp to control
> read only field? Actually, text filed are editable (in the common use).
> Helen
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Peyathevar,
> Santhi {PBG}
> Sent: Wednesday, September 17, 2003 11:28 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [MVC-Programmers] readonly
>
> How do i get
> <html:text readonly="true" /> working?
>
> My code:
> isReadOnly = "\"true\""
> <html:text property="firstName" readonly=<%=isReadOnly%>/>
>
> Problem: It does not translate html:text. As a result ViewSource gives:
>
> <html:text property="firstName" readonly="true" />
>
> Thank you
> Santhi
> _______________________________________________
> MVC-Programmers mailing list
> [EMAIL PROTECTED]
> http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers
>
> _______________________________________________
> MVC-Programmers mailing list
> [EMAIL PROTECTED]
> http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers
>
_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers