in which method shuld i use at the servlet code for request the value of a radio button in the html code? html:: <input type=radio name=x value=z>z <input type=radio name=x value=y>y java:: String a=request.someMethod("x");
Originally posted by Bosun Bello: Put it in your doGet or doPost...it depends on your processing needs. String a=request.getParameter("x")
Bosun thankes bosun but i know this method and it doesn't help me cause it doesn't get the parameter value it gets the parameter name and on radio buttons you put the same name but different value for each option and my problem is that i can't get the value
hi yoop, Try to us getParameterNames() instead of getParameterValue(). You can store all the values of Radio Button in String array and later can use them. I think this will solve your problem bye ninad