博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[转]struts1.2的action参数配置
阅读量:4319 次
发布时间:2019-06-06

本文共 843 字,大约阅读时间需要 2 分钟。

转载地址: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>

转载于:https://www.cnblogs.com/csshaw/p/5508779.html

你可能感兴趣的文章
谈一谈最近关闭的Kindle人论坛
查看>>
android java 与C 通过 JNI双向通信
查看>>
javascript:另一种图片滚动切换效果思路
查看>>
获取css的属性值
查看>>
Win32_NetworkAdapterConfiguration
查看>>
Flash:DisplayObject的transform/matrix的潜规则、小bug
查看>>
方维系统常用的jquery库以及各个库的含义
查看>>
[LeetCode]101. Symmetric Tree
查看>>
Node.js的适用场景
查看>>
MongoDB 3.4 高可用集群搭建(二)replica set 副本集
查看>>
一个一线城市的IT白领的生活成本:3万/年
查看>>
ubuntu12.04 使用Adobe Reader PDF
查看>>
吃货联盟订餐系统(二)
查看>>
MessageBox 用法
查看>>
Developing school contest 2
查看>>
本文来自CSDN博客 map
查看>>
python 字符串中替换字符
查看>>
mysql命令行编辑模式
查看>>
《实践与思考》系列连载(6)——IT从业人员工作环境及状态调查 抽奖结果公布...
查看>>
hihocoder 1643 Puzzle Game(北京icpc2017 现场赛)
查看>>