• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use javabean dbconnection class in mvc  RSS feed

 
Mukesh Singh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have javabean database connection class.How can I use this class in servlet?
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Servlets forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!