Controller in Struts

前端 未结 9 1959
滥情空心
滥情空心 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:32

    1. The predefined servlet class is the controller which uses structs-config.xml to manage or control your whole application.

    2. No, you can't have more than one controller in your struts application its just against the MVC rule (that you cant have more than one servlet in your app) struts is designed based on MVC.

提交回复
热议问题