紧急求助

boyboy66 2006-02-28 06:40:12
<%@ 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,依然在当前页面,这是什么原因?谢谢
...全文
72 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
boyboy66 2006-02-28
  • 打赏
  • 举报
回复
还是不行啊
doway 2006-02-28
  • 打赏
  • 举报
回复
<html:form action="/enterAction" >

改成:

<html:form action="/enterAction.do" >

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧