adspace


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

How is declarative handling of exceptions done in struts ?

1005


What are the contents on web.xml in struts application ?

1066


What is the difference between filters and interceptors ?

1311


What do you know about validation plugin ?

1028


What is action chaining ?

1164