GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Struts
Go To First  |  Previous Question  |  Next Question 
 Struts  |  Question 88 of 103    Print  
How many ActionServlets are created by struts based application?

  
Total Answers and Comments: 2 Last Update: November 27, 2007     Asked by: katipelly 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Charles
 
It would be misleading to say that only one instance of Servlet is created per web application. One instance of each Servlet class defined in your code is created per web application. i.e., If your application has 100 ActionServlet classes, you will have one instance of each ActionClass defined, which means, the web application would have 100 ActionServlet instances, corresponding to each ActionClass defined in your application. Now, for n users, every one of these instances would create a thread for each client.

Above answer was rated as good by the following members:
khadarzone, pradeep_rmk
June 11, 2007 12:03:51   #1  
Ritesh Kapse        

RE: How many ActionServlets are created by struts base...

ActionServlet is a Servlet(Java Class).For one web application only one instance of Servlet is created which is multi threaded i.e.it will create separate thread of execution for each client.So only one instance of ActionServlet will be created for each web application.

Regards
Ritesh
IDST Pune


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 27, 2007 12:12:19   #2  
Charles        

RE: How many ActionServlets are created by struts base...
It would be misleading to say that only one instance of Servlet is created per web application. One instance of each Servlet class defined in your code is created per web application. i.e. If your application has 100 ActionServlet classes you will have one instance of each ActionClass defined which means the web application would have 100 ActionServlet instances corresponding to each ActionClass defined in your application. Now for n users every one of these instances would create a thread for each client.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Answered by asreeni on 2005-04-08 03:24:40: The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well 
Latest Answer : Apache Struts is a frame work build on several design patterns like MVC, FrontController, Factory, Singleton etc., It is most suitable framework to develop web based applications, because  this framework is supported by all the web containers.If ...

Latest Answer : The new features added to Struts 1.1 are 1. RequestProcessor class 2. Method perform() replaced by execute() in Struts base Action Class3. Changes to web.xml and struts-config.xml4.Declarative exception handling5.Dynamic ActionForms6.Plug-ins7.Multiple ...

Latest Answer : 1) When first the request is made from a JSP/HTML/XSLT to the server with a particular URI(/something.do), the controll first reaches Web.xml file.2) it checks the mapping for /something.do in web.xml and finds the ActionServlet and loads ActionServlet.......action        ...

Latest Answer : Yes, we use Service locator design pattern    We can call from Action Calss through JNDI to home object.          then call remote object from home object ...

Latest Answer : There are only five struts tag libraries1)Bean tag lib2)Html tag lib3)logic tag lib4)nested tag lib5)Template tag libothers are JSTL tag libraries(ex: c.tld,sql.tld,fmt.tld) ...

Latest Answer : hi,to handle the errors:in struts project to handle the error objet by using ActionError object and to handle the errors by using ActionErrors object.for supposeActionError ae1=new ActionError("err.one");ActionError ae2=new ActionError("err.two");Action ...

Latest Answer : These are the tags we can define ,,,,,  ...

Latest Answer : Tokens are used to prevent multi click problem in struts. In Action class method at the begining of the code, need to call the saveToken() that generates an unique identifier for the "request url" and stotes it in the session and also in the ...

Latest Answer : In the Enterprise standards the struts do well in view part in MVC architecture. ...

Latest Answer : Yes I also agree with this - The core classes of struts are ActionForm, Action, ActionMapping, ActionForward etc... ...


 Sponsored Links

 
Related Articles

Performing DML Operations on XML Schema Based XMLType Views

Performing DML Operations on XML Schema Based XMLType Views Analyzing the underlying query of the empSch v view discussed in the preceding section you may note that each attribute of the EMP T object used in the select list maps to a certain column of a single table namely emps What this means in pr
 

Application Development in .NET

ASP NET 2 0 Tutorials Application development in NET Client Side Application Development Client applications are applications that run on the client system or the desktop of the user They are closest to the traditional windows based applications and they display forms or windows on the desktop enabl
 

N-Tier Application Partitioning

N Tier Application Partitioning Application partitioning is a vital process as it provides one with the opportunity to clearly define an even distribution of an application s presentation process and key data components without which you may find yourself feeling quite lost The components may be dis
 

N-Tier Application Manageability

N Tier Application Manageability While it is a fact that N Tier applications tend to provide almost limitless scalability the desire to change or add new forms of functionality can present a challenge in more than one arena Growth on a large scale can make capacity planning quite hard When available
 

Application Frameworks in SQL Server 2005

The new application framework of SQL called the Service Broker is a distributed application framework that provides relable asynchronous messaging at the database to database level. It allows internal and external processes to exchange streams of reliable asynchronous messages using extensions of T-
 

Rapid Application Development

What is RAD? One of the conveniences of developing software is that it is not a physical tool that can be lost once it gets developed or manufactured. Codes are used to implement the software and it does not disappear together with the product. We can re-use the code all over again in another softw
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Effective Controls for Attaining Continuous Application Security

Effective Controls for Attaining Continuous Application Security Throughout the Web Application Development Life Cycle Given the choice, every organization would want secure Web sites and applications from the Web application development phase all the way through the software development life cycle.
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Web Application Vulnerability Assessment Essentials

Your First Step to a Highly Secure Web Site If an organization taking a systematic and proactive approach to web security, and to running a web application vulnerability assessment in particular, then that organization defended against the most rapidly increasing class of attacks. &nb
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape