dcsimg
How do I make static global class in JSP ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mirror_mirror
Posted On:   Thursday, June 23, 2005 12:00 PM

I have some .jsp files and one of them is the db_server.jsp. Doesn't anyone know how to connect them all together. So I only have to init my DB once when user login to the main page.

Right now I have to do db_server.init() in every first line of .jsp file in order to make it works. which takes too much time.

Please help. !!!

Re: How do I make static global class in JSP ?

Posted By:   Anonymous  
Posted On:   Friday, June 24, 2005 05:16 AM

ServletContext is global object. You can keep global objects in ServletContext and use across ur web application.
About | Sitemap | Contact