紧急求助
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page pageEncoding="utf-8" %>
<%@ page errorPage="/AppError.jsp"%>
<%@ taglib uri="/struts-html.tld" prefix="html" %>
<%@ page import="org.apache.commons.beanutils.BeanUtils" %>
<%@ taglib uri="/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/c.tld" prefix="c" %>
<%@ taglib uri="/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/struts-tiles.tld" prefix="tiles" %>
<html>
<head>
<title>UpSell</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
function editRecord(num){
editForm.uniqueId.value = num;
editForm.action="/ceposWeb/editAction.do?uniqueId=uniqueId";
editForm.submit();
}
</script>
</head>
<body>
<html:form action="/enterAction" >
<tr>
<td>
<html:select property="uniqueId" >
<html:options property="uniqueId" labelProperty="name" collection="groupNameList" />
</html:select>
</td>
<td> <input type="submit" name="edit" value="Edit" onclick="editRecord('92300c7bffffffdc0111ee45099655e7')"></td>
<td> <input type="submit" name="new" value="New"></td>
</html:form>
<form action="" name="editForm">
<input type="hidden" name="uniqueId" />
</form>
</body>
</html>
按下EDIT按钮后,始终不能跳转到editRecord()函数里的url,依然在当前页面,这是什么原因?谢谢