chakan_0002ejsp_jsp.java
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

VBScript

  1. import java.sql.*;
  2. import java.util.*;
  3. import javax.servlet.*;
  4. import javax.servlet.http.*;
  5. import javax.servlet.jsp.*;
  6. import org.apache.jasper.runtime.*;
  7. public class chakan_0002ejsp_jsp extends HttpJspBase {
  8.     static {
  9.     }
  10.     public chakan_0002ejsp_jsp( ) {
  11.     }
  12.     private static boolean _jspx_inited = false;
  13.     public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
  14.     }
  15.     public void _jspService(HttpServletRequest request, HttpServletResponse  response)
  16.         throws java.io.IOException, ServletException {
  17.         JspFactory _jspxFactory = null;
  18.         PageContext pageContext = null;
  19.         HttpSession session = null;
  20.         ServletContext application = null;
  21.         ServletConfig config = null;
  22.         JspWriter out = null;
  23.         Object page = this;
  24.         String  _value = null;
  25.         try {
  26.             if (_jspx_inited == false) {
  27.                 synchronized (this) {
  28.                     if (_jspx_inited == false) {
  29.                         _jspx_init();
  30.                         _jspx_inited = true;
  31.                     }
  32.                 }
  33.             }
  34.             _jspxFactory = JspFactory.getDefaultFactory();
  35.             response.setContentType("text/html; charset=GBK");
  36.             pageContext = _jspxFactory.getPageContext(this, request, response,
  37.              "", true, 8192, true);
  38.             application = pageContext.getServletContext();
  39.             config = pageContext.getServletConfig();
  40.             session = pageContext.getSession();
  41.             out = pageContext.getOut();
  42.             // HTML // begin [file="/chakan.jsp";from=(0,48);to=(1,0)]
  43.                 out.write("rn");
  44.             // end
  45.             // HTML // begin [file="/chakan.jsp";from=(1,31);to=(2,0)]
  46.                 out.write("rn");
  47.             // end
  48.             // HTML // begin [file="/chakan.jsp";from=(2,27);to=(3,0)]
  49.                 out.write("rn");
  50.             // end
  51.             // HTML // begin [file="/chakan.jsp";from=(3,32);to=(35,0)]
  52.                 out.write("rn<html>rn<head>rn<script language="javascript">rn   function a(){rn      if(form6.stu_id.value=="")rn         {alert("请输入学号在查看");rn         form6.stu_id.focus();rn         return false;}rn   }rn   function b(){rn      if(form7.kechenghao.value=="")rn         {alert("请输入课程号在查看");rn         form7.kechenghao.focus();rn         return false;}rn   }rn</script>rn<title>rnchakanrn</title>rn</head>rn<body bgcolor="#ffffff">rn      <br >&nbsp;&nbsp;&nbsp;<font color="red">请选择所需要的进行查看:<br><br><hr ><br><br>rn <table  width="100%" cellspacing="0" cellpadding="4" rules="all" bordercolor="#CC9966" border="1" id="dg_rxkb" style="background-color:White;border-color:#CC9966;border-width:1px;border-style:None;width:100%;border-collapse:collapse;">rn    <form action="chakan1.jsp" method="POST" name="form6">rn<tr><td><font color="6633CC">  输入学号查看个人成绩情况:</td><td><input type="text" name="stu_id" ></td><td><input type="submit" name="chakan" value="查看" onclick="return a()"></td></tr>rn    </form>rn    <form action="chakan2.jsp" method="POST" name="form7">rn    <tr><td><font color="6633CC"> 输入课程号查看该课学生成绩:</td><td><input type="text" name="kechenghao" ></td><td><input type="submit" name="chakan" value="查看" onclick="return b()"></td></tr>rn</form></table>rn</body>rn</html>rn");
  53.             // end
  54.         } catch (Throwable t) {
  55.             if (out != null && out.getBufferSize() != 0)
  56.                 out.clearBuffer();
  57.             if (pageContext != null) pageContext.handlePageException(t);
  58.         } finally {
  59.             if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  60.         }
  61.     }
  62. }