Struts2.0中Action中配置的默认值

来源:互联网 发布:大数据平台服务目录 编辑:程序博客网 时间:2024/06/16 17:11


1)action标签的type、method默认值;result标签的name的默认值

<package name="chj" namespace="/test" extends="struts-default">          <action name="helloworld"   >          <result >/WEB-INF/page/hello.jsp</result>          </action>    </package>  

A、如果没有为action指定class,默认是ActionSupport

B、如果没有为action指定method,默认执行action中的execute() 方法。

B、如果没有指定result的name属性,默认值为success


0 0
原创粉丝点击