在线等 求解 一个404错误
我的工程名是StuInfo,在页面中需要换页和编辑、新建、删除,在第一页时可以正常工作,可是换页之后就会出现404错误,
主页面AllUser.jsp:
function edit(vid){
window.location.href="Euse.jsp?eid="+vid; }
function del(did){
var b =confirm("确认要删除吗?");
if(b){
window.location.href="../servlet/UserServlet?opflag=del&did="+did;
}else{
alert("删除操作取消!");
}
}
</script>
</head>
<body>
<%
UserDAO userdao = new UserDAO();
PageHelp pagehelp=null;
List list = null;
pagehelp=(PageHelp)request.getAttribute("pagehelp");
if(pagehelp==null){
//System.out.println("起始页");
int currentPage=1;
pagehelp =userdao.queryUser(" ",currentPage);
}
list=pagehelp.getObjectlist();
%>
<form name="search" method="post" action="./servlet/UserServlet" target="_self" onSubmit="return docheck()">
<input type="hidden" name="opflag" value="search">
<table align="center" >
<tr>
<td height="40" colspan="29" align="center"> <font size="5" face="华文楷体"><strong>用户信息</strong></font></td>
</tr>
<tr>
<td height="10" colspan="3"><div align="center"></div></td>
</tr>
<tr>
<td align="right">ID:<input type="text" style="width:90px;height:20px;" name="uID" ></td>
<td align="right">角色:
<select name="urole">
<option value="">请选择</option>
<option value="0">学生</option>
<option value="1">教师</option>
<option value="2">管理员</option>
</select>
<td><input type="submit" value="查询"></td>
</tr>
<tr>
<td height="5" colspan="3"><div align="center"></div></td>
</tr>
</table>
</form>
<form name="AllUser" action="AllUser.jsp">
<table align="center" border="1">
<tr>
<td width="80" ><div align="center"><font size="2" face="宋体"><strong>ID</strong></font></div></td>
<td width="80" ><div align="center"><font size="2" face="宋体"><strong>姓名</strong></font></div></td>
<td width="80" ><div align="center"><font size="2" face="宋体"><strong>密码</strong></font></div></td>
<td width="40" ><div align="center"><font size="2" face="宋体"><strong>角色</strong></font></div></td>
<td></td>
<td><input name="tnew" type="button" onClick=" window.location.href='NewUser.jsp'" value=&quo