一个按钮提交多个action? 用JavaScript怎么去实现一个按钮提交多个action? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 一个按钮调用Js方法动态生成表单提交,不知是否是你需要的效果。示例:类似生成的uri:htpp://.../ExamOnline/actionName.do?method=methodNamefunction forward(actionName,methodName){ var tempForm = document.createElement("form"); tempForm.action="/ExamOnline/"+actionName; tempForm.method="post"; document.body.appendChild(tempForm); var tempInput = document.createElement("input"); tempInput.type="hidden"; tempInput.name="method"; tempInput.value=methodName; tempForm.appendChild(tempInput); tempForm.submit();} 求助:window.showModalDialog传中文参数问题 运行servlet的表单提交出现http500错误 各位高手,請幫忙解決一個令小弟百思不得其解的問題 jstl 问题 求实例代码,java如何通过Thin连接Oracle9i并查询数据库 业务层方法全部使用静态方法是否可行? 困扰了三天三夜啊!尝试写第一个EJB遇到的问题 小弟初来乍到,请各位牛人多多指教 Java中TextField 的问题。 求助关于java.lang.StackOverflowError的解决方法 我想通过选中复选框 ,然后点击删除,实现删除功能,这个参数怎么传递啊 网络编程ServerSocket
示例:
类似生成的uri:htpp://.../ExamOnline/actionName.do?method=methodNamefunction forward(actionName,methodName){
var tempForm = document.createElement("form");
tempForm.action="/ExamOnline/"+actionName;
tempForm.method="post";
document.body.appendChild(tempForm);
var tempInput = document.createElement("input");
tempInput.type="hidden";
tempInput.name="method";
tempInput.value=methodName;
tempForm.appendChild(tempInput);
tempForm.submit();
}