File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes Please give some code or idea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Please give some code or idea" Watch "Please give some code or idea" New topic

Please give some code or idea

mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 243

Please give some code to servlet that controls the data from database like update,delete,insert in a single servlet
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60781

Two things:
  • You should know that JavaRanch in NotACodeMill. Please write your own code and ask for help with it rather than asking others to do your work for you.
  • Database access should be performed in the Model, not the Controlelr, and hence is not a Servlet issue. As such, this topic has been moved to the JDBC forum.

  • [Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
    Jeanne Boyarsky
    internet detective

    Joined: May 26, 2003
    Posts: 30116

    To get started with JDBC, see the Oracle JDBC tutorial.

    [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
    Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
    Don't get me started about those stupid light bulbs.
    subject: Please give some code or idea
    Similar Threads
    sending data from Java to Servlet
    How to send request data
    How to read some parsed value from my target xml file in XSLT
    Need some JSP, Servlet Questions?
    How To Connect a Servlet with an Applet