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>
      
  • 默认值

    1. 如果没有为action指定class,默认是ActionSupport。
    2. 如果没有为action指定method,默认执行action中的execute() 方法。
    3. 如果没有指定result的name属性,默认值为success。

03. struts2中Action配置的各项默认值

相关文章:

  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-08-25
  • 2021-11-11
  • 2021-10-12
  • 2021-12-03
  • 2022-03-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2021-10-28
  • 2021-10-30
  • 2022-12-23
相关资源
相似解决方案