This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Ashok, I m not sure abt the use of id,but I have following option for your problem.... <input type="checkbox" name="chk1" value="1"> <input type="checkbox" name="chk1" value="2"> <input type="checkbox" name="chk1" value="3"> make sure names for all checkbox are same And you can use request.getParameterValues() to chekc whihc one is selected as below String s=request.getParameterValues("chk1");//chk1 is the name of chkbox for(int i=0;i<s.length;++i) out.println(s[i]); Hope this helps Cheers Praful
All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Joined: Nov 18, 2003
thanx ,,,, But i am getting Null pointer Exception where i need to pass check box name through url ...
Joined: Feb 10, 2001
you just need to put all check box and submit button in same form tag <form> <input type=... ... .. <input type=submit value="hit me"> </form> are you using any link for submitting your form ??