xuanxiuke_0002ejsp_jsp.java
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:4k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- import java.sql.*;
- import java.util.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import org.apache.jasper.runtime.*;
- public class xuanxiuke_0002ejsp_jsp extends HttpJspBase {
- static {
- }
- public xuanxiuke_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=GBK");
- pageContext = _jspxFactory.getPageContext(this, request, response,
- "", true, 8192, true);
- application = pageContext.getServletContext();
- config = pageContext.getServletConfig();
- session = pageContext.getSession();
- out = pageContext.getOut();
- // HTML // begin [file="/xuanxiuke.jsp";from=(0,48);to=(1,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/xuanxiuke.jsp";from=(1,31);to=(2,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/xuanxiuke.jsp";from=(2,27);to=(3,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/xuanxiuke.jsp";from=(3,32);to=(35,0)]
- out.write("rn<html>rn<head>rn<script language="javascript">rn function a(){rn if(form6.stu_id.value=="")rn {alert("请输入学号在查看");return false;}rn }rn function b(){rn if(form7.kechenghao.value=="")rn {alert("请输入课程号在查看");return false;}rn }rn</script>rn<title>rnxuankern</title>rn</head>rn<body bgcolor="#ffffff">rn <br > <font color="red">请选择所需要的进行查看:<br><br><hr >rn <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="xuanxiuke1.jsp" method="POST" name="form6">rn <tr><td align="center"><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>rnrnrn <form action="xuanxiuke2.jsp" method="POST" name="form7">rnrn <tr><td align="center"><font color="6633CC"> 输入课程号查看选修该课学生:</td><td><input type="text" name="kechenghao" ></td><td><input type="submit" name="chakan" value="查看" onclick="return b()"></td></tr></table>rn</form>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);
- }
- }
- }