File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes how add data in database through jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "how add data in database through jsp" Watch "how add data in database through jsp" New topic

how add data in database through jsp

muhammad fahim
Ranch Hand

Joined: Dec 17, 2006
Posts: 45
hi master sir i am using netbeans 5.5

i use this code for show data in jsp page

but sir how i insert data in to database please send me code


[ April 09, 2007: Message edited by: Ben Souther ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

It looks like you know how to get a connection and how to read form parameters.

Moving to our JDBC forum where you'll get better help building your instert statement.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33124

Take a look at this page for an example. The two main parts are the JDBC code and the SQL for insert.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: how add data in database through jsp
It's not a secret anymore!