Jump to content

jsp pages and java servlets


pouncer

Recommended Posts

hi guys, im designing my pages in jsp pages using dreamweaver

 

my question is how would i make 1 class for connecting to the database, then call this class in all my jsp pages?

 

would i code the class in a servlet? if so can anyone pls give me any info or tutorials for very simple servlet/jsp based sql stuff

Link to comment
https://forums.phpfreaks.com/topic/88540-jsp-pages-and-java-servlets/
Share on other sites

create one .java file for connecting to the database and creare all the utility functions in this class

 

create the object of above class with the session scope in your JSP page and use it in all the application

to call the utility function in the JSP.

 

 

Cheers.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.