File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes jdbc-servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc-servlet" Watch "jdbc-servlet" New topic
Author

jdbc-servlet

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
how i can i insert the data in the form of html form in
database through servlets.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Retrieve the form data in your servlet using the getParameter, getParameterNames, and getParameterValues methods, it all depends on your needs. Connect to your DB, create your SQL statement using the retrieved values, update/insert these values into your database. You may want to check out the JDBC tutorial at Sun's site for some help.
Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
shams sh
Greenhorn

Joined: Feb 19, 2001
Posts: 7
You will havew to use prepared statements to insert the vlaues of HTMl form into the database.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc-servlet
 
Similar Threads
Page attribute in validator
Accessing Japanese characters from text area
Form Variables vs Session Variables
Is there a standard behavior for save buttons on forms?
WA #2 ..... word association