File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to disable a text box in struts tag library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to disable a text box in struts tag library" Watch "How to disable a text box in struts tag library" New topic
Author

How to disable a text box in struts tag library

Abhilash
Greenhorn

Joined: Nov 02, 2004
Posts: 12
Hai every one
I am working in struts frame work and i have to disable a text in jsp page. How to do it? My codig is as follows...

User Type <html:text property="userTypeEdit" size="15"/>

How can i disable this text box so that i can prevent users from editing the content of that text box.

Please help
Thankyou
san geetha
Ranch Hand

Joined: Sep 07, 2004
Posts: 44
If u want to disable the textbox through out then try this,

U can also conditionally disable/enable the textbox by coding for the same in JavaScript
Abhilash
Greenhorn

Joined: Nov 02, 2004
Posts: 12
Hai Sangeetha
Thanks for ur valuable help. Its working
san geetha
Ranch Hand

Joined: Sep 07, 2004
Posts: 44
I suppose u wud have struts-documentation.war with you, if not then download the same... Contains extensive documentation to various struts tags.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to disable a text box in struts tag library