Html form, radio button and Servlet?

In the second servlet you can use: String value = request. GetParameter("tituloX"); to read the value. You need to know the name of the parameter to do.

If this is not known, you can try to enumerate the parameters: for ( Enumeration e = request. GetParameterNames(); e.hasMoreElements();) { String param = (String) e.nextElement(); String value = request. GetParameter(param ); } This only works for parameters with a single value.

I still don't understand it. What's what is transmmited in the request object, what's the format? When I select a radio button and click on the submit button, is it not just that radio button what's transmitted to the servlet?

If I select button in row number 1 and in the servlet use: String value = request. GetParameter("titulo1"); When I print the value of 'value' it says it is null – Charles Jul 20 '09 at 21:06 Use method="GET" at your form. When submitting you should see a URL like myservlet?

Titulo1=k at the address bar. The parameters are passed to the servlet URL encoded at the request path. With POST method they are inserted at the body of the request, but it is actually the same thing.

– kgiannakakis Jul 21 '09 at 6:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions