zoukankan      html  css  js  c++  java
  • 【转】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>

  • 相关阅读:
    阿里云服务器配置
    linux 环境变量问题
    docker 常用操作
    docker 安装的nginx 的默认配置
    camera开发相关
    Ubuntu下使用Git
    Java web项目实现多附件上传
    Java web项目实现上传图片及时预览
    SQL Server游标【转】
    SQL Server游标的使用【转】
  • 原文地址:https://www.cnblogs.com/csshaw/p/4213516.html
Copyright © 2011-2022 走看看