读书人

struts2中extends=#039;struts-default#039; 懂

发布时间: 2012-11-18 10:51:21 作者: rapoo

struts2中extends='struts-default' 理解
struts2的struts.xml中package是否必须要extends,看资料不是必须的,但是不写的时候报错,There is no result type defined for type 'dispatcher' mapped with name 'success' - result...
不是必须的。
该错误 There is no result type defined for type 'dispatcher' mapped with name 'success'
原因是:类型dispatcher是在struts-default.xml中定义的,从这个意义上说,又是必须写extends="struts-default"的,
否则你就自定义一套result type,interceptor等等

读书人网 >软件架构设计

热点推荐