Are the radio buttons in the same form and is the ation property of the form set to your servlet? What do you mean by "does not work", do you get some error message, or getParameter() returns null..?
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.
<input type="radio" name="kaspomat" value="a10" >
radio button 2
<input type="radio" name="kaspomat" value="a20" >
radio button 3
<input type="submit" value="submit" >
Now I want to reaad my choise from a servlet ( to read a10) how can I pass these parameters to servlet and read them
I try in this way
String check = request.getParameter("kaspomat");
but it does not work
please someone can help me?
What does your URL look like once you submit? Does it include your parameter, e.g. ("url?kaspomat=a10"). Here's example code for submitting a simple radio parameter: