Results 1 to 5 of 5

Thread: combo in jsp

  1. #1
    Expert Member
    Join Date
    Oct 2005
    Answers
    383

    combo in jsp

    hi frineds

    i want to use a jsp page, which connects to DB and retrieves info from it(say lastname).the retrieved info should be inserted into COMBOBOX
    Please tell how can one do it!

    :)
    NEVER SAY DIE.

  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: combo in jsp

    I think in jsp page you can also use html code. Checkout the following code.



    ------------------
    suresh


  3. #3
    Expert Member
    Join Date
    Oct 2005
    Answers
    383

    Re: combo in jsp

    hi suresh
    but it will return more than one row from DB!
    suppose it returns three rows!

    i am storing these three names in array like
    arr[]=rs.getString("lastname");
    now i want to add it to combo box



    <%
    }
    %>

    Last edited by pramod.reddy; 03-19-2007 at 05:04 AM.

  4. #5
    Expert Member
    Join Date
    Oct 2005
    Answers
    383

    Re: combo in jsp

    thanks pramod!Though i got the solution that day itself, i forgot to write here!
    But still too much thanks! Hope you will help me in other problems too(as i come across)!

    :)
    NEVER SAY DIE.

  5.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact