在Jsp页面中把servlet请求地址写全,我已经将要注意的地方红色加粗了。我的jsp页面是新建的一个文件夹。
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>课程信息管理</title> <link rel="stylesheet" type="text/css" href="../jquery-easyui-1.3.3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../jquery-easyui-1.3.3/themes/icon.css">
<link rel="stylesheet" type="text/css" href="../jquery-easyui-1.3.3/demo.css">
<script type="text/javascript" src="../jquery-easyui-1.3.3/jquery.min.js"></script>
<script type="text/javascript" src="../jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script> </head>
<body> <table id="dg" title="实验室课程表信息" class="easyui-datagrid" fitColumns="true" pagination="true"
rownumbers="true" fit="true" url="../classInform" >
<thead>
<tr>
<th field ="date" width="70">时间</th>
<th field ="termNum" width="60">周次</th>
<th field="week" width="60">星期</th>
<th field="classNum" width="60">班级名称</th>
<th field="content" width="60">内容</th>
<th field="room"width="60">教室</th>
<th field="classOne"width="60">第一节</th>
<th field="classTwo"width="60">第二节</th>
<th field="classThree"width="60">第三节</th>
<th field="classFour"width="60">第四节</th>
<th field="teachName"width="60">教师姓名</th>
<th field="teachNum"width="60">教师编号</th> </tr>
</thead> </table> </body>
</html>