• Post Reply Bookmark Topic Watch Topic
  • New Topic

database connection with jsp pages

 
ali sookun
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i just want to create a connection between my database and my jsp pages.
database is mysql 5.0... what i really want to know is if the coding for the connection should be in the jsp page or be coded like a java class and later be invoked when needed?
thanks in advance
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The DB code should be coded in a Java Class, not the JSP. This class is normally called a 'Data Access Object' or DAO. If you look up Data Access Object and MVC you should be able to find out more.
 
ali sookun
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, wil investigate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!