Hi all,
        i have a problem of pmance: i have to manage over 30 JSP pages, each
one with an Action class associatedd...
i don't want to create new Action every request, otherwise in a few minutes
i can have over 500 classes around...
how can i solve that?? ok, the answer should be 'use only a single instance
for each Action'...but, since i don't have much
experience of that (pmance was never a major concern in my prev apps)..can
anyone help me??
how can i do that if, accordint to the Model 2, i have an hashtable which
associates to each JSP one Action interface?
i should do somehting like

String classname = Hashtable.get(name_of_the_jsp);
Action action = class.forName(classname);

how can i do so that i have only one instance of each Action class?? do i
have to declare a static global variable in the servlet
of type Action?

can anyone please write me some code?

thanx in advance and forgive my ignorance
regards
        marco

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to