Google News
logo
Java Struts - Interview Questions
What's the flow of requests in Struts based applications?
Struts based applications use MVC design pattern. The flow of requests is as follows :
 
* User interacts with View by clicking any link or by submitting any form.
* Upon user’s interaction, the request is passed towards the controller.
* Controller is responsible for passing the request to appropriate action.
* Action is responsible for calling a function in Model which has all business logic implemented.
* Response from the model layer is received back by the action which then passes it towards the view where user is able to see the response.
Advertisement