• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use javabean dbconnection class in mvc

 
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Servlets forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic