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

Jsp/Servlet

开发平台:

VBScript

  1. import javax.servlet.*;
  2. import javax.servlet.http.*;
  3. import javax.servlet.jsp.*;
  4. import org.apache.jasper.runtime.*;
  5. public class index_0002ejsp_jsp extends HttpJspBase {
  6.     static {
  7.     }
  8.     public index_0002ejsp_jsp( ) {
  9.     }
  10.     private static boolean _jspx_inited = false;
  11.     public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
  12.     }
  13.     public void _jspService(HttpServletRequest request, HttpServletResponse  response)
  14.         throws java.io.IOException, ServletException {
  15.         JspFactory _jspxFactory = null;
  16.         PageContext pageContext = null;
  17.         HttpSession session = null;
  18.         ServletContext application = null;
  19.         ServletConfig config = null;
  20.         JspWriter out = null;
  21.         Object page = this;
  22.         String  _value = null;
  23.         try {
  24.             if (_jspx_inited == false) {
  25.                 synchronized (this) {
  26.                     if (_jspx_inited == false) {
  27.                         _jspx_init();
  28.                         _jspx_inited = true;
  29.                     }
  30.                 }
  31.             }
  32.             _jspxFactory = JspFactory.getDefaultFactory();
  33.             response.setContentType("text/html; charset=GBK");
  34.             pageContext = _jspxFactory.getPageContext(this, request, response,
  35.              "", true, 8192, true);
  36.             application = pageContext.getServletContext();
  37.             config = pageContext.getServletConfig();
  38.             session = pageContext.getSession();
  39.             out = pageContext.getOut();
  40.             // HTML // begin [file="/index.jsp";from=(0,48);to=(64,0)]
  41.                 out.write("rnrn<HTML>rn<HEAD>rn<TITLE> index </TITLE>rnrnrn<SCRIPT language="JavaScript">rnfunction a() {rnrntif(form1.username.value==""){rnttalert("用户名不能为空,请确定后重新输入");rnttform1.username.focus();rnttreturn false;rnt}rntif(form1.password.value==""){rntalert("密码不能为空,请确定后重新输入");rntform1.password.focus();rntreturn false;rnt}rntreturn true;rn}rnfunction reg() {rnwindow.open("reg_bean.jsp","s","toolbar=no;,scroll=no,Width=350px,Height=260px,left=300,top=300");rn}rn</script>rn</HEAD>rnrn<body ONLOAD="webclock()" background="img/bg3.jpg" text="#808080" link="#FF99CC" vlink="#FF8080" alink="#FF99CC" topmargin="0" leftmargin="0">rn<div align="center">rn<center>rn<table border="0" width="780">rn<tr>rn<td width="135"><img border="0" src="img/top_image.jpg" ></a></td>rnrn</tr>rn<tr><td  height="20"  background="img/xian1.jpg"></td></tr>rn</table>rn<br><br><br>rn<table border="0" width="70%" cellspacing="0" cellpadding="0" align="center">rn<tr><td  align="center"><center>rn<form name="form1" method="post" action="login.jsp">rn  <table  border="0"><tr><td >rn   <font  size="5" color="8282DC">用户ID:</font></td>rn <td colspan="3"><input name="username" type="text" size="25"> </td></tr>rn<tr><td><font  size="5" color="8282DC">密 码 :</font></td>rn<td colspan="3"><input name="password" type="password" size="25"></td></tr>rn<tr><td><font  size="5" color="8282DC">身 份 :</font></td>rn<td align="right"><INPUT  type="radio" CHECKED value="student" name="select"><font  size="5" color="8282DC">学生</td>rn<td></td>rn<td><INPUT  type="radio" value="admin" name="select"><font  size="5" color="8282DC">管理员</td></tr>rn  <tr><td  colspan="4" width="20"></td></tr>rn<tr><td></td><td><input  type="submit" name="sumbit" value="登 陆"  onClick="return a()" >   </td>rn<td><input type="reset" name="Submit2" value="重 填"></td><td><a href="index.jsp"><span class="unnamed1"></span></a></td>rn</tr>rn</table>rn</form>rn</center>rn<tr><td align="center" colspan="3"><font color="8282DC"></font></td></tr></table>rnrn</center></div>rn</BODY>rn</HTML>rnrn");
  42.             // end
  43.         } catch (Throwable t) {
  44.             if (out != null && out.getBufferSize() != 0)
  45.                 out.clearBuffer();
  46.             if (pageContext != null) pageContext.handlePageException(t);
  47.         } finally {
  48.             if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  49.         }
  50.     }
  51. }