Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

910 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

25 Experts available now in Live!

Get 1:1 Help Now