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 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 and Relational Databases
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: 246

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: 63865

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] [About Bear] [Books by Bear]
    Jeanne Boyarsky
    author & internet detective

    Joined: May 26, 2003
    Posts: 33124

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

    [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: Please give some code or idea
    It's not a secret anymore!