Solved

How to update and retrieve values of HTML Listbox for and from Oracle Table

Posted on 2008-10-31
2
911 Views
Last Modified: 2013-11-24
Hi friends ,
I have one HTML listbox(multiple list) in my project ,in which I'm using JSP as server side programming and oracle as database. I like to update this listbox with the entries of my one oracle table by using Java and later want to update oracle table with the items of that listbox. Could you help me how I can do that by using Java/JSP/Javascript?
0
Comment
Question by:hsperhar
2 Comments
 
LVL 25

Accepted Solution

by:
Tomas Helgi Johannsson earned 50 total points
ID: 22851034
     Hi!

Take a look at these examples:
http://www.java2s.com/Code/Java/JSP/Database.htm
This example here
http://www.java2s.com/Code/Java/JSP/SelectingrecordswithconditionFromaDatabase.htm
shows how to retrieve data from database and write it out into an HTML table which you could easily
change to a HTML listbox. :)
Other java-database examples to look at
http://www.java2s.com/Code/Java/Database-SQL-JDBC/Oracle-JDBC.htm
http://www.java2s.com/Code/Java/Database-SQL-JDBC/CatalogDatabase-SQL-JDBC.htm
http://www.java2s.com/Code/Java/Servlets/Database.htm

Hope this helps. :)

Regards,
   Tomas Helgi
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

856 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