struts-default包是在struts-default.xml文件中定义的,该文件可以在struts2-core.jar文件内的根目录下找到:<struts> ... <package name="struts-default" abstract="true"> <result-types> <result-type name="chain" class="com.opensymphony.xwork2.ActionChainResult"/> ... </result-types> <interceptors> <interceptor name="alias" class="com.opensymphony.xwork2.interceptor.AliasInterceptor"/> ... <interceptor-stack name="defaultStack"> <interceptor-ref name="exception"/> ... </interceptor-stack> </interceptors> <default-interceptor-ref name="defaultStack"/> <default-class-ref class="com.opensymphony.xwork2.ActionSupport" /> </package> </struts> struts-default包的内容从struts-default.xml文件中可以看到,struts-default包含了以下一些内容:
|
|
来自: Erica_Shea > 《Struts2》