add_0005fkecheng_0002ejsp_jsp.java
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:4k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- import java.sql.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import org.apache.jasper.runtime.*;
- public class add_0005fkecheng_0002ejsp_jsp extends HttpJspBase {
- static {
- }
- public add_0005fkecheng_0002ejsp_jsp( ) {
- }
- private static boolean _jspx_inited = false;
- public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
- }
- public void _jspService(HttpServletRequest request, HttpServletResponse response)
- throws java.io.IOException, ServletException {
- JspFactory _jspxFactory = null;
- PageContext pageContext = null;
- HttpSession session = null;
- ServletContext application = null;
- ServletConfig config = null;
- JspWriter out = null;
- Object page = this;
- String _value = null;
- try {
- if (_jspx_inited == false) {
- synchronized (this) {
- if (_jspx_inited == false) {
- _jspx_init();
- _jspx_inited = true;
- }
- }
- }
- _jspxFactory = JspFactory.getDefaultFactory();
- response.setContentType("text/html; charset=gb2312");
- pageContext = _jspxFactory.getPageContext(this, request, response,
- "", true, 8192, true);
- application = pageContext.getServletContext();
- config = pageContext.getServletConfig();
- session = pageContext.getSession();
- out = pageContext.getOut();
- // HTML // begin [file="/add_kecheng.jsp";from=(0,49);to=(1,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/add_kecheng.jsp";from=(1,31);to=(20,2)]
- 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 ");
- // end
- // begin [file="/add_kecheng.jsp";from=(20,4);to=(20,45)]
- request.setCharacterEncoding("gb2312");
- // end
- // HTML // begin [file="/add_kecheng.jsp";from=(20,47);to=(70,0)]
- 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");
- // end
- } catch (Throwable t) {
- if (out != null && out.getBufferSize() != 0)
- out.clearBuffer();
- if (pageContext != null) pageContext.handlePageException(t);
- } finally {
- if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
- }
- }
- }