1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>    
  2. <%    
  3.     String path = request.getContextPath();    
  4.     String basePath = request.getScheme() + "://"    
  5.             + request.getServerName() + ":" + request.getServerPort()    
  6.             + path + "/";    
  7. %>    
  8.     
  9. "-//W3C//DTD HTML 4.01 Transitional//EN">    
  10.     
  11.         
  12.         "<%=basePath%>">    
  13.     
  14.         My JSP <span class="string">'emp.jsp'</span><span> starting page    
  15.     
  16.         "pragma" content="no-cache">    
  17.         "cache-control" content="no-cache">    
  18.         "expires" content="0">    
  19.         "keywords" content="keyword1,keyword2,keyword3">    
  20.         "description" content="This is my page">    
  21.             
  22.     
  23.         "text/javascript" src="./js/util.js">    
  24.     
  25.             
  26.     
  27.             
  28.         
  29.     
  30.         
  31.         
        
  32.             

        

  33.                 显示所有的员工信息    
  34.                 
  35.     
  36.             "button" value="采用JSON返回数据显示所有的员工信息" οnclick="findAll(1)" />    
  37.             "button" value="添加用户" οnclick="addEmp()" />    
  38.             
        
  39.                 "1px" cellpadding="0" cellspacing="0">    
  40.     
  41.                         
  42.                         员工信息表    
  43.                         
  44.                         
  45.                             
  46.                                 
  47.                                 编号    
  48.                                 
  49.                             class="asc" id="ordername" οnclick="changeTest()"    
  50.                                 width="55px">    
  51.                                 姓名    
  52.                                 
  53.                                 
  54.                                 岗位    
  55.                                 
  56.                                 
  57.                                 入职时间    
  58.                                 
  59.                                 
  60.                                 领导    
  61.                                 
  62.                                 
  63.                                 薪水    
  64.                                 
  65.                                 
  66.                                 奖金    
  67.                                 
  68.                                 
  69.                                 部门    
  70.                                 
  71.                                 
  72.                                 操作    
  73.                                 
  74.                             
  75.                         
  76.                     "listemps">    
  77.     
  78.                         
  79.                     
  80.             
    
  •             
        
  •                 "javascript:getpageInfo(1)">首页    
  •                 "javascript:getpageInfo(2)">上一页    
  •                 "javascript:getpageInfo(3)">下一页    
  •                 "javascript:getpageInfo(4)">末页    
  •