Solved

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

Posted on 2008-10-31
2
898 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 24

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

747 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

9 Experts available now in Live!

Get 1:1 Help Now