index_0002ejsp_jsp.java
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:4k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import org.apache.jasper.runtime.*;
- public class index_0002ejsp_jsp extends HttpJspBase {
- static {
- }
- public index_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="/index.jsp";from=(0,48);to=(64,0)]
- 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");
- // 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);
- }
- }
- }