Controller in Struts

前端 未结 9 1948
滥情空心
滥情空心 2021-01-12 06:10

What is Controller in MVC ?

Is it struts.xml or Servlet (Action Class)?

Can we have more than one Controller in our ap

9条回答
  •  既然无缘
    2021-01-12 06:19

    A Struts-based Controller is a "component" consisting of many parts. Custom Action classes are written by application developers. Struts ActionServlet is provided by the framework. A struts-config.xml configuration file is written by application developers. The code that reads this file and creates Action** objects is provided by the framework. All of these elements together are the "Controller"

    For more information about the Struts Action package, see API docs below:

    http://struts.apache.org/1.x/apidocs/org/apache/st...ts/action/package-summary.html

提交回复
热议问题