I have search almost everything but still i cant solved the problem.
I'm just trying to print the parameter return from the checkbox but its showing NULL every time [for the checked box ]. In the following code getParameterMap is printing the correct value but getParameter and getParameterValues both returning NULL
Please be sure to use code tags when posting code to the forums. Unformatted or unindented 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 click this link ⇒ UseCodeTags ⇐ for more information.
Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.
The fact that there's a space in the checkbox name in the HTML ("item ") might have something to do with it. Can you post the exact output you're getting?
Also, note that it's not good practice to put HTML in a servlet. It's better to use a JSP because it allows you to edit the page without recompiling the application and makes it much easier to read the HTML. Use a RequestDispatcher to forward the request from the servlet to the JSP.