1 posts in topic
Flat View  Flat View

Posted By:   S_M
Posted On:   Thursday, August 22, 2002 10:53 AM

An application uses 20 servlets/jsps. Hence, 20 instances of the servlets would b created on the application server (if all the 20 pages r being accessed).

How would you avoid having 20 instances?

Is there some design pattern for this?

Re: Servlets

Posted By:   Anonymous  
Posted On:   Thursday, August 22, 2002 11:22 AM

You could use a front controller patern where a single servlet redirects request to appropriate JSPs/servlets, but will still have a single instance of every servlet/jsp created, this can not be avoided...
About | Sitemap | Contact