Servlet和struts2的作用是一样的,你用其中一个就行了。
struts2框架是用来替换servlet的,struts的配置就是要求系统把控制器转交给struts2,所以servlet不能再用。