Request Processor.:The web Container calls the Execute Method with the help of the Action class we write.:Action Class:request processor class run the execute method inside this class.:Request dispatcher will run the execute method. :ActionClass:Action Servlet will execute the the execute method in action class of struts.:Request Processor is responsible for creating the action object(if it does not exist) because action will be created only once and call the execute method when a request comes.:Action Servlet will run the execute method in Struts, as it is the main controller of struts. :org.apache.struts.actions.*;:Action class:Internally the Request Processor will call the execute method by specified actionclass:The controller (RequestProcessor) will select an appropriate Action for each request, create an instance (if necessary), and call the execute method.:Action Servlet will invoke the corresponding execute method of the requested action:execute() method is called by processActionPerform() method of RequestProcessor class:org.apache.struts.actions.Action:Action Servlet have to read the structs configaration file in application and to send the request to appropriate Action class(it&
Category:Struts Interview Questions
No comments:
Post a Comment