Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Struts
« Previous
Next »
What is the limitation of creating ActionServlet instances per web application?
Options
- Two
- Three
- Unlimited
- One
CORRECT ANSWER : One
Discussion Board
ActionServlet Instance
Only one instace of ActionServlet can run per web application that is the restriction from the application side. ActionServlet provides the "controller" in the Model-View-Controller (MVC) design pattern for web applications that is commonly known as "Model 2".
"Model 2" application is created in the following manner:
1) The user interface is created with server pages, which doesn't contain any business logic. These pages represent the "view" component of an MVC architecture.
2) Forms and hyperlinks in the user interface that require business logic to be executed will be submitted to a request URI that is mapped to this servlet.
3) There can be one instance of this servlet class, which receives and processes all requests that change the state of a user's interaction with the application. The servlet delegates the handling of a request to a RequestProcessor object. This component represents the "controller" component of an MVC architecture.
4) The RequestProcessor selects and invokes an Action class to perform the requested business logic, or delegates the response to another resource.
Rohit Sharma 10-1-2014 04:01 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲