pouncer Posted January 30, 2008 Share Posted January 30, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/88540-jsp-pages-and-java-servlets/ Share on other sites More sharing options...
pdkv2 Posted February 4, 2008 Share Posted February 4, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/88540-jsp-pages-and-java-servlets/#findComment-457490 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.