Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to disable a text box in struts tag library

 
Abhilash
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Sangeetha
Thanks for ur valuable help. Its working
 
san geetha
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose u wud have struts-documentation.war with you, if not then download the same... Contains extensive documentation to various struts tags.
 
Diego Meneses
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is better with:



inside the code of the texfield
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
readonly is not the same as disabled!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic