Hi, I sent two arrayList from an action to a jsp file where I created two list boxes, did some javascript transfer between the two listboxes, I want when I submit I will get the values of each listbox in an action, could you please show me how to do it ?

Thanks, your help is appreciated.

Majid

Make sure your SELECT elements have a name attribute which can be then used to retrieve the selected value using ServletRequest.getParameter in case only single selection is allowed or ServletRequest.getParameterValues in case multiple selections are allowed.

Don't use JSP's for anything other than presenting the data; use servlets for handling form submissions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.