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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 19
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: 60046
    
  65

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to dynamically enable/disable a textbox based on a checkbox selection without using javascript?
 
Similar Threads
How to enable check box on select particular value from dropdown box
how to validate
jsp in html
How to
Dynamic select in spring