Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6126347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:21:42+00:00 2026-05-23T16:21:42+00:00

I hava a form which is populated dynamically in my JSP. Every row has

  • 0

I hava a form which is populated dynamically in my JSP. Every row has a checkbox element attached to it. The user can click can select any number of rows and when he submits the form I want all the rows selected be passed to the servlet. How do i do this? This is my form element in the JSP

<form name="Select_Reqs" action="associate" method="post">
        <table width="500" cellpadding="1px" cellspacing="0px">
            <tr>
                <td>Req Number</td>
                <td>Business Group</td>
                <td>Hiring Manager</td>
            </tr>
            <% List <ReqDetailsBean> all_reqs = (List <ReqDetailsBean>) request.getAttribute("req_list"); 
                request.removeAttribute("req_list");
                ReqDetailsBean item = new ReqDetailsBean();
                int i=0;
                if(all_reqs.isEmpty()){
                    %>
                    <h1>List is Empty</h1>
                <%}
                while(i<all_reqs.size()){
                    item=all_reqs.get(i);
                    i++;
                    %>
                <tr>
                    <td>
                        <%= item.getJob_code() %>
                    </td>
                    <td>
                        <%= item.getBusiness_unit() %>
                    </td>
                    <td>
                        <%= item.getHiring_manager_name() %>
                    </td>
                    <td>
                        <input type="checkbox" name="select_req"/>
                    </td>
                </tr>
                <% }%>
        </table>
                <input type="submit" name="Submit" action="associate"/>
        </form>

I know I can do this in AJAX. But i dont know that technology and I have a time constraint on me. Any help is really appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:21:42+00:00Added an answer on May 23, 2026 at 4:21 pm

    Use this in the servlet to obtain the submitted selected checkboxes:

    String[] selected = request.getParameterValues("select_req");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hava a Rails application, I need to integrate Facebook. User can login with
I hava a form (form_remote_tag) that updates a comments section. The form is in
I am trying to upload an image to the server. I hava a form
I hava a data window object, in which I am fetching some attributes from
I hava a website with a navigation bar which consists of several tabs. Now
I hava a xml doc (and complex element) that is similar to this example:
I hava a main view, where you have one object and you can change
I hava a datalist in side that I have checkbox <asp:DataList ID=dlst1 runat=server RepeatDirection=Horizontal
I am Using jquery validate() plugin . i hava a combobox in form that
I hava java swing project which is developed in JBuilder IDE. Now I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.