Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

getting selected checkboxes values withing same jsp page

843835Jul 9 2002 — edited Jul 11 2002
Hi there!
I have a jsp page with HTML form in it. The HTML form contains a list of elements presented as checkboxes that has to be selected by the user for deleting them. My problem is, I was not able to get the list of checkboxes selected by the user within the same page.
I was able to manage it only by jumping to another jsp page like this:

Form method=post action=myjsp.jsp
and using request.getParameterValues("checkboxName");

But how can I do this in the same jsp page...I mean onSubmitting the form I would like to call a javascript function and in this function I want to get the list of selected checkboxes (both the form and javascript function need to be in the same jsp page). Can anybody help me with this.

Thanks very much
-Manasvi

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2002
Added on Jul 9 2002
2 comments
572 views