<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
 String path = request.getContextPath();
 String basePath = request.getScheme() + "://"
   + request.getServerName() + ":" + request.getServerPort()
   + path + "/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
  <base href="<%=basePath%>">
  <meta http-equiv="content-type" content="text/html; charset=utf8">
  <link rel="stylesheet" type="text/css" href="../css/operateDept.css">
  <script type="text/javascript" src="../js/class23.js"></script>
  <script type="text/javascript" src="../js/admin.js"></script>
  </script>
 </head> <body>
  <form action="index.jsp" method="post">
   <table border="1" width="600">
    <tr>
     <th colspan="2">
      <span class="title">增加部门</span>
     </th>
    </tr>
    <tr>
     <td>
      部门名称
     </td>
     <td align="left">
      <input type="text" name="deptname" id="deptname" />
      <span id="d1"></span>
     </td>    </tr>
    <tr>
     <td>
      部门人数
     </td>
     <td align="left">
      <input type="text" name="deptcount" id="deptcount" />
     </td>
    </tr>
    <tr>
     <td colspan="2">
      <input type="submit" value="提交" />
      <input type="reset" value="重置" />
     </td>
    </tr>
   </table>
  </form>
 </body>
</html>奇怪的是如果我把<base href="<%=basePath%>">这句删掉 就能显示样式 可是问题是发送请求又不行了,到达不了index.jsp这个页面