后台管理页面中加入了一个
框架,在其中的content部分包含的页面中,无法跳转到各自指定的servlet,并且地址栏的servlet地址也没有改变,报404错误 <frameset rows="20%,80%">
<frame src="admin/top.jsp" name="top">
<frameset cols="20%,80%">
<frame src="admin/left.jsp" name="left">
<frame src="admin/content.jsp" name="content">
</frameset>
</frameset>
<form action="<%=request.getContextPath() %>/servlet/AddSectionServlest?method=addSection" method="post">
<table>
<tr>
<td>请输入版块名称:</td>
<td><input type="text" name="sname"></td>
</tr>
<tr>
<td colspan="2" align="center">
<button type="submit">添加</button>
</td>
</tr>
</table>
</form>
404就是路径写错了,你需要看看你配置的servlet路径是不是正确的。
action的路径错了,