DispatchAction的用法

1、编写Action,继承自DispatchAction

将execute方法改为其他名字

2.struts-config.xml中的<action标签中加入一个请求参数parameter="名字aaa"

3.jsp页面中增加一个隐藏域,里面也有一个请求参数:

<html:form  action="...">

    <input type="hidden"  name="名字aaa"  value="action中的某个方法名"

</html:form>


错误写法:url?opType="findAll"

正确写法:url?opType=findAll

版权声明:本文为博主原创文章,未经博主允许不得转载。

posted @ 2013-01-17 15:50  一直向北  阅读(306)  评论(0编辑  收藏  举报