Action中的各項默認值
-
Action各項配置
-
<action name="helloworld" class="com.liuyong666.action.HelloWorldAction" method="execute" > <result name="success">/WEB-INF/page/hello.jsp</result> </action>
-
-
Action默認配置
-
<action name="helloworld"> <result>/WEB-INF/page/hello.jsp</result> </action>
-
-
默認值
- 如果沒有爲action指定class,默認是ActionSupport。
- 如果沒有爲action指定method,默認執行action中的execute() 方法。
- 如果沒有指定result的name屬性,默認值爲success。