I have created two <select> tags. First is <select name = "a"> having some options. other is <select name = "b">. i am transferring selected values of "a" to "b" on event of a button click.

upto this it is working fine.

Now on click OK button my page submitted to the next jsp. On this jsp page I want all the values from "b" on previous page whether they were selected or not.

I used request.getParameter("b") as well as request.getParameterValues("b").
Both are returning only first value of "b".

how can i resolve this.