This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes How to make text field disabled using html tag? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to make text field disabled using html tag?" Watch "How to make text field disabled using html tag?" New topic
Author

How to make text field disabled using html tag?

michelle Wang
Ranch Hand

Joined: Jan 12, 2004
Posts: 65
My code is like this:
<html:text property="branchID" size="10" maxlength="10" styleClass="normal" value="<%=branchID%>" />

How to make this text field disabled (editable=false)?


michelle Wang <br />SCJP 1.4
bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104
Hi,

The <html:text> tag has an attribute called "disabled" for which you can set the value as either TRUE or FALSE.
michelle Wang
Ranch Hand

Joined: Jan 12, 2004
Posts: 65
Oh yes it works. thanks a lot
 
Don't get me started about those stupid light bulbs.
 
subject: How to make text field disabled using html tag?