life cycle of struts?
Answer Posted / kartheeswari
There are many steps,
1. After getting the request from the client, the
ActionServlet invokes the goGet() or doPost() method, in
which there is a invokation of process() method.This method
desides the module.
2. Action servlet dispatches the request to RequestProcesor
class which does some core works of ActionServlet.Then
invokes the appropriate Action class.
3. Action class does main business logic and data accessing
(communicating with Moedl) thru execute() method and which
returns the ActionForward object.
4. In b/w the form field validations happens in form bean.
5. Depends upon the value of ActionForward object the view
is decided to display.(output)
4. Form bean is invoked for form field validation,
| Is This Answer Correct ? | 27 Yes | 36 No |
Post New Answer View All Answers
What is the purpose of @stringlengthfieldvalidator annotation?
What are the differences between http direct and http indirect?
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
What is the difference between forwardaction and includeaction?
What is actioncontext?
How can we write our own interceptor and map it for action?
List some bundled validators?
Which model components are supported by Struts?
Are struts thread safe?
What is jakarta struts framework?
Why actionservlet is singleton in struts?
How is a lookup dispatch action created?
What are Struts2 core components?
Which servlet does the struts framework use?
What is controller in struts2?