tell me struts flow ?
Answer Posted / ram-sd softech
1. When we start a web application based on struts the web
container creates a
servlet object based on
2. The web container creates the request and response
objects.
3. The web container calls the service method of Action
Servlet by passing the request and the response objects.
4. The Code of Action Servlet checks the struts-
config.xml with path /action at action mappings tag we
discussed how is that as earlier (page-8). Now if it is
there then it creates the ActionOne Object then after it
calls the execute method of ActionOne class.
5. After that it forwards to jsp.If any problem eraises
it shows Exception.
6. After that the Web container will start the execution
of .jsp as we discussed in JSP’s.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Which interceptor is responsible for file upload support?
What is the purpose of @typeconversion annotation annotation?
What is value stack?
What are the applications of struts?
Which configuration file is used for storing jsp configuration information in struts?
How we can controlled duplicate form submission in struts?
How many struts config file in a struts application?
What are different ways to create Action classes in Struts2?
How the flow of various requests happens in struts application?
What is execute method in struts?
Why we use struts in java?
How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
What is actioninvocation?
How action-mapping tag is used for request forwarding in struts configuration file?
How to build struts application in eclipse?