取代URL传值的方式
function approveUserRequest(status){var form = document.approveUpgradeForm;form.approveStatus.value = status; document.approveUpgradeForm.submit();}<html:form action = "/approve" style="width:900px;" method="post"><html:hidden property="approveStatus" value=""/>
//从审批页面获取审批通过与否的状态Pass/Reject. String applyStatus = request.getParameter("approveStatus");
function approveUserRequest(status){var userID = $("#userID").val();var form = document.getElementById("accountForm");url = "${pageContext.request.contextPath}/pages/register";url += "/approve.do?actionFlag=approveUpgradeRequest&status="+status;alert(url);form.action=url;form.submit();}