This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes how to use javabean dbconnection class in mvc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "how to use javabean dbconnection class in mvc" Watch "how to use javabean dbconnection class in mvc" New topic
Author

how to use javabean dbconnection class in mvc

Mukesh Singh
Greenhorn

Joined: Sep 18, 2006
Posts: 2
I have javabean database connection class.How can I use this class in servlet?
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3640
What I have understood that you have a JavaBeans that deal with Database Connection or Connection Pool. Correct me if I am wrong.

You can use JavaBeans in Servlet same as your use any class. Just create object using new keyword and user getter and setter methods.


My blood is tested +ve for Java.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63211
    
  69

Moved to the Servlets forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use javabean dbconnection class in mvc
 
It's not a secret anymore!