java - Struts 2 MVC 架构中的困惑

标签 java model-view-controller architecture struts2 struts

我正在学习Struts2 in Action知道Struts 2中的Controller是FilterDispatcher,Model是Action

但之前我知道ActionFilterDispatcher都是Controller,而Struts不提供对Model层的支持。以上哪一项是错误的?

最佳答案

我想说 FilterDispatcher 是 FrontController Action 是同一个类中的 Model 和 Controller。

关于java - Struts 2 MVC 架构中的困惑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27149042/

相关文章:

java - 将方法添加到对象数组

部分 View 中的 javascript 未触发

ios - View 作为模型对象替代的属性

java - 存储库上的事务

java - 我应该改用 scala 来创建具有重写规则的系统吗?

c# - 如何处理数据库和应用程序中的 "Type"字段?

java - 单列 GridLayout

java - JFrame 采用奇怪的背景

java - 使用 contains 方法查找包含字符串的行

asp.net-mvc - 关注点分离、业务逻辑与表示逻辑