• [转]struts1.2的action参数配置


    转载地址:http://chenfeng0104.iteye.com/blog/796870

    <struts-config>
        <form-beans>
            <form-bean name="baseForm" type="jade.struts.form.BaseForm"/>
        </form-beans>

        <action-mappings>
        <!-- 关注action的配置 -->
            <action path="/customer/customer_action"  //请求url
            name="baseForm"  //该Action绑定的ActionForm(存放请求参数)
            validate="false"  //是否执行ActionForm中的validate方法来校对请求参数,缺省为true
            input="/error.jsp"  //当Bean发生错误时返回的路径
            scope="request"  //指定ActionForm的作用域,可选值有request和session,缺省为session
                    type="cn.com.pc.groupbuy.action.CustomerAction"  //请求处理类
            parameter="method">  //用url参数指定处理方法。如:/user.do?method=execute将调execute方法
                <forward name="list"  //逻辑视图名(ActionForward对象值),如:mapping.findForward("list")
            path="/WEB-INF/pages/customer/customer_list.jsp"  //视图
            redirect="false"/>  //是否重定向(默认值为false)
            </action>
        </action-mappings>
    </struts-config>

  • 相关阅读:
    php设计模式-简单依赖注入容器的闭包方式实现
    php设计模式-简单依赖注入容器
    php设计模式-简单依赖注入
    php设计模式-数据对象映射
    php设计模式-迭代器
    php设计模式-接口工厂模式
    可变数量参数*args 关键字可变数量参数**kwargs
    python文本文件读写
    excel文件处理
    wxPython 使用总结
  • 原文地址:https://www.cnblogs.com/csshaw/p/5508779.html
Copyright © 2020-2023  润新知