| 1 |
- <%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/ssTag" prefix="ss"%>
<html>
<head>
<script>
// 封装方法,修改表单的action属性并提交
function changeFormActionAndSubmit(formId, newActionUrl) {
// 获取表单元素
var form = document.getElementById(formId);
if (form) {
// 修改表单的 action 属性
form.action = newActionUrl;
// 提交表单
form.submit();
} else {
console.error("Form with ID '" + formId + "' not found.");
}
}
</script>
</head>
<body>
<form method="post" id="myForm">
<div class='content-div' ssFith='{max:300,min:100,lvl:1,fixHeight:150}'>
${errMsg}
<br><br>
${objMsg}
</div>
<div class="bottom-div">
<div class="bottom-down-div">
<input type="submit" value="重新发送" class="bottom-button"
onclick='changeFormActionAndSubmit("myForm",
"http://localhost:8080<ss:serv name='ss.agrTask' dest='ext_info' parm='{shid:"${shid}",userId:"${userId}"}'/>");'/>
<input type="submit" value="取消发送" class="bottom-button"
onclick='changeFormActionAndSubmit("myForm",
"http://localhost:8080<ss:serv name='ss.rejTask' dest='ext_info' parm='{shid:"${shid}",userId:"${userId}"}'/>");'/>
<input type="button" onclick="wd.display.closeDialog();" class="bottom-button" value="关闭" />
</div>
</div>
</form>
</body>
</html>
|