RE: readonly
[email protected] Wed, 17 Sep 2003 14:54:42 -0500
| Newsgroups | gmane.comp.java.mvc.devel |
|---|---|
| Message-ID | <[email protected]> |
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
>