my dog learned polymorphism
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
Author

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
thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63348
    
  70

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
    author & internet detective
    Marshal

    Joined: May 26, 2003
    Posts: 32628
        
    215

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