首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

struts2中extends='struts-default' 懂得

2012-11-18 
struts2中extendsstruts-default 理解struts2的struts.xml中package是否必须要extends,看资料不是必须

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等等

热点排行