Results 1 to 2 of 2

Thread: Need quick help with JSP, Reading multiple values [Resolved]

  1. #1

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Need quick help with JSP, Reading multiple values [Resolved]

    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
    Last edited by Danial; Dec 2nd, 2001 at 08:30 AM.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  2. #2

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    I have figured it out myself !! For anyone else with the same question, you have to use getParameterValues which returns a string array.

    Danial
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width