PDA

Click to See Complete Forum and Search --> : Need quick help with JSP, Reading multiple values [Resolved]


Danial
Dec 2nd, 2001, 06:58 AM
Hi,
I am having a little problem with reading the query string in JSP. I have a page with a list box which contains some questions, now when i submit them i want to read all the questions form the listbox and add it to the database.

My problem is, when i try to read using getParameter it only reads the first item from the list. how do i read all the other items on the list box.

I know i can cycle through the QueryString and manually extract the values, but thats rather long, there must be a easier way to do it.

Thanks for any help.

Danial

Danial
Dec 2nd, 2001, 07:29 AM
I have figured it out myself !! For anyone else with the same question, you have to use getParameterValues which returns a string array.

Danial