File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Using Struts Validation with a radio button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Using Struts Validation with a radio button" Watch "Using Struts Validation with a radio button" New topic
Author

Using Struts Validation with a radio button

Rakesh Kurup
Greenhorn

Joined: Nov 15, 2005
Posts: 2
I have a radio button in my jsp page. On selecting it all the other fields in that page should be disabled. I dont want to implement this using javascript. What is the best thing I can do?
I am relatively new to Struts validation and Taglibraries, but I am assuming I should be using either of these.
Please give me some references/tips as to how I can implement this.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

I dont want to implement this using javascript.


Then you are completely out of luck. There is nothing in JSP, Struts or any other server-side technology that will do this for you. It is a client-side function and must be performed with client-side Javascript.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Using Struts Validation with a radio button
 
Similar Threads
validate only if field is visible?
Populating previously selected Radio Button Values - On reaching the Same JSP pae
Disabling fields when radio button is selected
struts and ajax
Struts 1.1: html:radio issues