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 dynamically enable/disable a textbox based on a checkbox selection without using javascript? 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 dynamically enable/disable a textbox based on a checkbox selection without using javascript?" Watch "How to dynamically enable/disable a textbox based on a checkbox selection without using javascript?" New topic
Author

How to dynamically enable/disable a textbox based on a checkbox selection without using javascript?

Mathew Geraldo
Greenhorn

Joined: Mar 27, 2013
Posts: 21
Hello,

Is there a way I could dynamically enable or disable a textbox based on a checkbox selection without using javascript?
We are using Struts2 and JSP.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

Not without refreshing the entire page as if it were 2001.

It is impossible to write a modern web application without using client-side scripting.





[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to dynamically enable/disable a textbox based on a checkbox selection without using javascript?