When wil use singleton class in Struts

Answer Posted / harikrishna rapuri

Suppose if u give more 300 requests at a time struts based
webapplication,in that time some servers(tomcat..etc)
creates another ActionServlet object .This is violation of
the Servlet Specification(Servlet behavior is single
instance and multi therading).So that struts frame work
designers use Actionservlet as a Sigleton class.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of jsonvalidation in struts?

549


What is action support class in struts2?

563


What is the configuration files used in struts?

523


How can link tag’s action attribute be used?

520


What is the use of web xml in struts2?

521






what is meant by Struts Validator Framework?

561


Can we integrate struts with spring?

585


What are the conditions for actionform to work correctly?

519


What should be the name of xml file used for validation in struts?

536


What is actioninvocation in struts2?

581


How to use forward action to restrict a strut application to mvc?

592


When do I need “struts.jar” on my classpath?

535


Does Struts2 action and interceptors are thread safe?

601


What are inner class and anonymous class?

543


What is a custom tag?

541