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

Jsp/Servlet

开发平台:

VBScript

  1. import java.sql.*;
  2. import javax.servlet.*;
  3. import javax.servlet.http.*;
  4. import javax.servlet.jsp.*;
  5. import org.apache.jasper.runtime.*;
  6. public class add_0005fkecheng_0002ejsp_jsp extends HttpJspBase {
  7.     static {
  8.     }
  9.     public add_0005fkecheng_0002ejsp_jsp( ) {
  10.     }
  11.     private static boolean _jspx_inited = false;
  12.     public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
  13.     }
  14.     public void _jspService(HttpServletRequest request, HttpServletResponse  response)
  15.         throws java.io.IOException, ServletException {
  16.         JspFactory _jspxFactory = null;
  17.         PageContext pageContext = null;
  18.         HttpSession session = null;
  19.         ServletContext application = null;
  20.         ServletConfig config = null;
  21.         JspWriter out = null;
  22.         Object page = this;
  23.         String  _value = null;
  24.         try {
  25.             if (_jspx_inited == false) {
  26.                 synchronized (this) {
  27.                     if (_jspx_inited == false) {
  28.                         _jspx_init();
  29.                         _jspx_inited = true;
  30.                     }
  31.                 }
  32.             }
  33.             _jspxFactory = JspFactory.getDefaultFactory();
  34.             response.setContentType("text/html; charset=gb2312");
  35.             pageContext = _jspxFactory.getPageContext(this, request, response,
  36.              "", true, 8192, true);
  37.             application = pageContext.getServletContext();
  38.             config = pageContext.getServletConfig();
  39.             session = pageContext.getSession();
  40.             out = pageContext.getOut();
  41.             // HTML // begin [file="/add_kecheng.jsp";from=(0,49);to=(1,0)]
  42.                 out.write("rn");
  43.             // end
  44.             // HTML // begin [file="/add_kecheng.jsp";from=(1,31);to=(20,2)]
  45.                 out.write("rn<html>rn<body>rn    <script language="javascript">rn function checkform() {rntif (document.add.kechenghao.value=="" || document.add.kechengming.value==""){rnttalert("课程号、课程名不能为空!");rnttreturn false;rnt}rntelse {rnttalert("添加成功!");rnttreturn true;rnt}rn  }rn</script>rnrnrnrnrn  ");
  46.             // end
  47.             // begin [file="/add_kecheng.jsp";from=(20,4);to=(20,45)]
  48.                  request.setCharacterEncoding("gb2312"); 
  49.             // end
  50.             // HTML // begin [file="/add_kecheng.jsp";from=(20,47);to=(70,0)]
  51.                 out.write("rn<head>rn<title>rn添加学生纪录rn</title>rn</head>rnrn<FORM Action="add_kc.jsp" Method="post" name="add">rnrn<table align="center" border="2" width="100%" bordercolorlight="#CC99FF" cellpadding="2" bordercolordark="#FFFFFF" cellspacing="2">rnrn  <tr> <td align=center colspan=2><font color=blue size=5><b>添加选修课程</font></td>rn   </tr>rnrn  <tr align=center><td>rnt  课程号:</td><td><INPUT TYPE="text" NAME="kch"></td>rnt  </tr>rnt<tr align=center><td>rnt  课程名:</td><td><INPUT TYPE="text" NAME="kcm" ></td>rnt  </tr>rnt  <tr align=center><td>rnt  任课教师:</td><td><INPUT TYPE="text" NAME="rkjs"></td>rnt  </tr>rnt  <tr align=center><td>rnt  星期几:</td><td><INPUT TYPE="text" NAME="xqj" ></td>rnt  </tr>rnt  <tr align=center><td>rnt  时间:</td><td><INPUT TYPE="text" NAME="sj" ></td>rnt  </tr>rnt  <tr align=center><td>rnt  上课教室:</td><td><INPUT TYPE="text" NAME="skjs" ></td>rnt  </tr>rnrnrn<tr><td align=center  colspan=2>rnrn<INPUT align=center TYPE="submit" value="提交" onclick="javascript:return(checkform());"> </td>rn</tr>rn</table>rn</form>rnrnrn<br>rn<br>rn<br>rn<br>rn<p align=center>rn<a href="list_kecheng.jsp";>返回</a> </p>rn</body>rn</html>rn");
  52.             // end
  53.         } catch (Throwable t) {
  54.             if (out != null && out.getBufferSize() != 0)
  55.                 out.clearBuffer();
  56.             if (pageContext != null) pageContext.handlePageException(t);
  57.         } finally {
  58.             if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  59.         }
  60.     }
  61. }