它们使用模型更改应用程序的数据,然后调用视图向用户显示最终结果。
They make changes to application data using Models, and then call Views to display the results to the user.
使用此方法,数据(模型)和用户界面(视图)将彼此分离,以便对一个方面的更改不会影响另一个方面。
Using this approach, the data (model) and user interfaces (view) are separated so that changes to one will not affect the other.
您可以指出采取哪种动作,使用什么模型,将哪种视图显示给用户,采用什么验证规则,显示哪种表单 ...
You can indicate which action to take, what model to use, which view to display to the user, what validation rules to employ, which forms to display ... Struts is totally configurable.
应用推荐