retrieve checkboxgroup value in jsp

How to retrieve checkboxgroup values sent from one jsp page say <input type="checkbox" name="cbquicklist"> to another jsp page. I have used a group of checkboxes with the same name ="cbquicklist" if i use request.getParameter("cbquicklist"); It returns only the first checkbox value.
r_muthuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MalpheusCommented:
Did you try request.getParameterValues("cbquicklist")? Function returns a String[].
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cerebus19Commented:
Don't forget that the browser will only include name/value pair for a checkbox in the response if it's checked.
0
COBOLdinosaurCommented:
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

<note>
Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
</note>

If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp


Cd&

0
cerebus19Commented:
I think Malpheus's answer was correct, since using getParameterValue() will only return the first value from the HTTP request; his suggestion should have worked, even though r_muthu never indicated whether or not it did.  My point was extremely important, though, in that it is necessary to note that only checked checkboxes return a value; if you don't keep this in mind when writing your code, you may forget to use "false" for any checkbox on the form that didn't return a value.

I think Malpheus deserves most of the credit, and an A, since his answer was absolutely correct to the question that was asked.  I think I deserve an assist, since my point was one that is often overlooked.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.