Dynamically populate textbox based on combo selection JDBC

Posted on 2007-07-21
Last Modified: 2008-05-12
I am using a Tomcat Server and Building JSPs alongwith mySQL database and JDBC connector for the database.

Now, in one of the JSPs, I have a combo box from which the user can select a value. The combobox values are the values of the primary key field of a table in the database.
ON the same jsp, there are multiple textboxes which contain the values of other fields of the same table.

Here is what i want to do:-
When i select a value from the combobox, then the corresponding record should be fetched from the database and the textbox fields should be populated with the corresponding values from the database.

Please help me
Question by:SarthakDudhara
    LVL 11

    Expert Comment

    You need to submit page and bring the value from database.
    If you want to do it without submitting form and user will not fill it, use AJAX.
    LVL 11

    Accepted Solution


    Expert Comment

    The link to the solution is not posted? I have a Very similar question that's open karanw

    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.

    Join & Write a Comment

    Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 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

    21 Experts available now in Live!

    Get 1:1 Help Now