struts 中的action
来源:百度知道 编辑:UC知道 时间:2024/06/05 05:21:25
一个action类,定义成两个逻辑action后,其中一个方法
function xxx()
{
targeForm=document.form[0];
targetForm.action="regist.action"
}
应该放在哪里,谢谢
function xxx()
{
targeForm=document.form[0];
targetForm.action="regist.action"
}
应该放在哪里,谢谢
DispatchAction
<action
parameter="Method"
path="/menuAction"
type="com.ss.struts.action.MenuAction" />
访问时
targetForm.action="regist.action?Method=action的方法名"
你这是通过javascript的方式提交请求,应该放到<script type="text/javascript"></script>中
然后通过targetForm.submit()方法提交
那你应该用的
DispachAction哦
那个需要设置XML的参数的
PARAMETER