Listing 1 shows an example of a Struts Action that blurs the line between model and controller.
清单1显示了一个Struts Action的例子,这个例子模糊了模型层和控制器层之间的界线。
Global filters - ASP.NET MVC now supports adding filters to all action methods of a controller.
现在,ASP.NET MVC支持向控制器的所有action方法中添加过滤器。
Instead of creating a controller or action class, you create a page, place components on it, and define how each component reacts to user input.
与构建控制器或动作类相反,您创建的是一个页面,在这个页面上放置组件,然后定义每个组件如何响应用户输入。
应用推荐