What is action used in Struts 2 in terms of MVC pattern?
问题 In Struts2, a controller dispatches a Request to an Action and the Action passes it to back-end logic, which could be regarded as a very big "model", to process the request and JSP represents Views. How to define the Action in Struts2 ? Definitely it's not View... is it the Controller or Model? 回答1: Struts actions are controllers in the sense of the MVC pattern. I think the discussion of the value stack and ActionContext , as well as getter methods in action classes confuses the issue. In