add_0005fcourse_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_0005fcourse_0002ejsp_jsp extends HttpJspBase {
- static {
- }
- public add_0005fcourse_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_course.jsp";from=(0,49);to=(1,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/add_course.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_course.jsp";from=(20,4);to=(20,45)]
- request.setCharacterEncoding("gb2312");
- // end
- // HTML // begin [file="/add_course.jsp";from=(20,47);to=(68,0)]
- out.write("rn<head>rn<title>rn添加学生纪录rn</title>rn</head>rnrn<FORM Action="add_course1.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>rn <tr align=center><td>rnt 学期号:</td><td><INPUT TYPE="text" NAME="xqh" ></td>rnt </tr>rn <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>rn <tr align=center><td>rnt 学 分:</td><td><INPUT TYPE="text" NAME="xf" ></td>rnt </tr>rnt <tr align=center><td>rnt 主讲教师:</td><td><INPUT TYPE="text" NAME="zjjs"></td>rnt </tr>rnrnrnrnrn<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="admin.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);
- }
- }
- }