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>

  • 相关阅读:
    双网卡绑定一个IP--bond
    查看window系统电脑连接过的wifi密码
    python字符串
    三级菜单
    购物车
    登录接口
    Python 基础之在ubuntu系统下安装双版本python
    SSH连接linux时,长时间不操作就断开的解决方案
    python中变量None的
    查找文件工具find
  • 原文地址:https://www.cnblogs.com/csshaw/p/5508779.html
Copyright © 2011-2022 走看看