JSP: auto populate drop down select box

Posted on 2011-10-12
Last Modified: 2012-05-12
Hi there,

Is anyone here is has example of code for JSP, i found tons of them with PHP:

i would like to use it on Jdev with oracle database, any one kind please share
some example for me.

Question by:boon86
    LVL 20

    Accepted Solution


    function showState(str){ 
    		 type: 'GET',
    		 url:  "get.jsp";url += "?count=" +str,
    		 success: function(msg){ 		 

    Open in new window

    LVL 20

    Expert Comment

    by:chaitu chaitu
    url:  "get.jsp?count=" +str,
    LVL 7

    Author Comment

    the example you provided is autocomplete for text box, i need drop down
    LVL 20

    Expert Comment

    by:chaitu chaitu
    <select name='item'  size='10' onchange="showState(this.value)">
    <option value='1'>One</option>
    <option value='2'>Two</option>
    <option value='3'>Three</option>
    <option value='4'>Four</option>
    <option value='5'>Five</option>
    <option value='5'>Six</option>

    Open in new window

    LVL 81

    Assisted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Introduction HyperText Transfer Protocol ( or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now