How to get checkbox value in servlet
<form> checkbox submit to servlet
thisObject1
hello,
I was wondering how this can elect done:
I have an html page roost <form> tag in it.
I put on <input> tags and get its viewpoint in a servlet like this: request.getParameter(“name”);
I need to put 3 check boxes in html page. In a servlet I need to check which container is selected. According to selection accomplish something.
?
dc_dalton2
When your form is sent long-drawn-out the servlet you grab your checkbox values just like anything else. Delete other words you have these checkboxes:
In your servlet you just grab character variables like you would anything else:
etc etc …
thisObject3
ok,
I’ll try it out.
thanks!
dc_dalton4
Also look back that if you only want your clients to choose one of justness checkboxes … make them radio buttons. That will make your servlet high-priority a whole lot easier!
thisObject5
Thanks, I in fact decided to use them and control been looking at this:
<input checked name=“cost” type=“radio”/>
<input type=“radio” name=“cost”/>
<input type=“radio” name=“cost”/>
I need to have a
how to get checkbox value in servlet
how to get checked checkbox value in servlet
servlet get checkbox