什么是 MVC 中的 Controller ?
是struts.xml
还是Servlet
(Action类)?
我们的应用程序中可以有多个 Controller
吗?
拥有多个 Controller 是一种好习惯吗?
最佳答案
在 Struts 中,应用程序 Controller 层代码/功能分为两部分:
ActionServlet
和RequestHandler
Action
类
ActionServlet
的行为类似于 FrontController pattern .
图片来自this OnJava article .
关于java - Struts 中的 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1666835/