__user_check.java
上传用户:xjrzjk
上传日期:2022-07-31
资源大小:1585k
文件大小:9k
- /* compiled from JSP: /admin/user_check.jsp
- *
- * This code was automatically generated at 21:23:46 on 2004-4-16
- * by weblogic.servlet.jsp.Jsp2Java -- do not edit.
- */
- package jsp_servlet._admin;
- import java.io.*;
- import java.util.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import javax.servlet.jsp.tagext.*;
- // User imports
- import java.sql.*; //[ /admin/user_check.jsp; Line: 2]
- // built-in init parameters:
- // boolean _verbose -- wants debugging
- // Well-known variables:
- // JspWriter out -- to write to the browser
- // HttpServletRequest request -- the request object.
- // HttpServletResponse response -- the response object.
- // PageContext pageContext -- the page context for this JSP
- // HttpSession session -- the session object for the client (if any)
- // ServletContext application -- The servlet (application) context
- // ServletConfig config -- The ServletConfig for this JSP
- // Object page -- the instance of this page's implementation class (i.e., 'this')
- /**
- * This code was automatically generated at 21:23:46 on 2004-4-16
- * by weblogic.servlet.jsp.Jsp2Java -- do not edit.
- *
- * Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
- */
- public final class __user_check
- extends
- weblogic.servlet.jsp.JspBase
- implements weblogic.servlet.jsp.StaleIndicator
- {
-
- // StaleIndicator interface
public boolean _isStale() {
weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext());
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/admin/user_check.jsp", 1082121802000L, "WebLogic Server 7.0 Thu Jun 20 11:47:11 PDT 2002 190955 ")) return true;
return false;
}
public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/admin/user_check.jsp", 1082121802000L, "WebLogic Server 7.0 Thu Jun 20 11:47:11 PDT 2002 190955 ")) return true;
return false;
}
-
- public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
- {
-
- // declare and set well-known variables:
- javax.servlet.ServletConfig config = getServletConfig();
- javax.servlet.ServletContext application = config.getServletContext();
- javax.servlet.jsp.tagext.Tag _activeTag = null;
- // variables for Tag extension protocol
- Object page = this;
- javax.servlet.jsp.JspWriter out;
- javax.servlet.jsp.PageContext pageContext =
javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
- response.setHeader("Content-Type", "text/html; charset=GBK");
out = pageContext.getOut();
JspWriter _originalOut = out;
- javax.servlet.http.HttpSession session = request.getSession(true);
-
-
- try { // error page try block
response.setContentType("text/html; charset=GBK");
out.print("rn");
out.print("rn");
//[ /admin/user_check.jsp; Line: 3]
try{ //[ /admin/user_check.jsp; Line: 4]
Class.forName("oracle.jdbc.driver.OracleDriver"); //[ /admin/user_check.jsp; Line: 5]
//[ /admin/user_check.jsp; Line: 6]
String strUrl = "jdbc:oracle:thin:@slight:1521:LOCAL"; //[ /admin/user_check.jsp; Line: 7]
String strUser = "eshop"; //[ /admin/user_check.jsp; Line: 8]
String strPassword = "eshop"; //[ /admin/user_check.jsp; Line: 9]
Connection con = DriverManager.getConnection(strUrl, strUser, strPassword); //[ /admin/user_check.jsp; Line: 10]
Statement st = con.createStatement(); //[ /admin/user_check.jsp; Line: 11]
Statement stCount = con.createStatement(); //[ /admin/user_check.jsp; Line: 12]
//[ /admin/user_check.jsp; Line: 13]
ResultSet rs = st.executeQuery("select * from RegUser"); //[ /admin/user_check.jsp; Line: 14]
out.print("rn<html>rn<head>rn<title>用户审查</title>rn<meta http-equiv="Content-Type" content="text/html; charset=gb2312">rn<STYLE type=text/css>.main {rntFONT-SIZE: 12pxrn}rn.main1 {rntFONT-SIZE: 14pxrn}rn.main2 {rntFONT-SIZE: 16pxrn}rn.main3 {rntFONT-SIZE: 7pxrn}rn.main4 {rntFONT-SIZE: 10pxrn}rnA:link {rntCOLOR: #ffffff; TEXT-DECORATION: nonern}rnA:visited {rntCOLOR: #ffffff; TEXT-DECORATION: nonern}rnA:active {rntCOLOR: #ff0000; TEXT-DECORATION: nonern}rnA:hover {rntCOLOR: #aa0000; TEXT-DECORATION: underlinern}rn</STYLE>rn<script language="javascript">rn function confirmdel(id){rn if (confirm("真的要删除这个用户?"))rn window.location.href="del_user.jsp?USERID='" + id + "'";rn }rn</script>rn</head>rn<body text="#000000">rnrn<br>rn <div align="center">rn <center>rn <TABLE cellSpacing=1 cellPadding=4 width=100% bgColor=#000000 height="136">rn <TR vAlign=top bgColor=#BECFF1>rn <TD class=main1 width="662" height="10" bgcolor="#BECFF1"></TD></TR>rn <TR vAlign=top bgColo");
out.print("r=#BECFF1>rn <TD class=main1 width="662" height="18">用户审查--</TD></TR>rn <TR vAlign=top bgColor=#BECFF1>rn <TD class=main1 width="662" height="15">rn <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#BECFF1" bordercolordark="#BECFF1">rn <tr class=main1>rn <td bgcolor="#BECFF1" align="center" height="20">帐号</font></td>rn <td bgcolor="#BECFF1" align="center" height="20">姓名</font></td>rn <td bgcolor="#BECFF1" align="center" height="20">电子信箱</font></td>rn <td bgcolor="#BECFF1" align="center" height="20">联系电话</font></td>rn <td bgcolor="#BECFF1" align="center" height="20">操作</font></td>rn <td bgcolor="#BECFF1" align="center" height="20">DEL</font></td>rn </tr>rn");
//[ /admin/user_check.jsp; Line: 76]
while (rs.next()){ //[ /admin/user_check.jsp; Line: 77]
out.print("rn <tr class=main1>rn <td align="center" height="25">");
out.print(String.valueOf(rs.getString("UserId"))); //[ /admin/user_check.jsp; Line: 80]
out.print("</td>rn <td align="center" height="25">");
out.print(String.valueOf(rs.getString("Name"))); //[ /admin/user_check.jsp; Line: 81]
out.print("</td>rn <td align="center" height="25">");
out.print(String.valueOf(rs.getString("Email"))); //[ /admin/user_check.jsp; Line: 82]
out.print("</td>rn <td align="center" height="25">");
out.print(String.valueOf(rs.getString("usePhone"))); //[ /admin/user_check.jsp; Line: 83]
out.print("</td>rn <td align="center" height="25">rn <a href="user_detail.jsp?USERID='" + ");
out.print(String.valueOf(rs.getString("USERID"))); //[ /admin/user_check.jsp; Line: 85]
out.print(" + "'"><font color=#0000FF>详细资料</font></a>rn</td> <td align="center" height="25">rn <a href="javascript:confirmdel('");
out.print(String.valueOf(rs.getString("USERID"))); //[ /admin/user_check.jsp; Line: 87]
out.print("')"><font color=#0000FF>删除</font>-* </a>"rn</td>rn </tr>rn");
//[ /admin/user_check.jsp; Line: 90]
} //[ /admin/user_check.jsp; Line: 91]
out.print("rn </table>rn </TD></TR>rn <TR bgColor=#BECFF1>rn <TD class=main1 width="662" height="27">rn <p align="center"> rn </TD></TR>rn <TR bgColor=#BECFF1>rn <TD class=main1 width="662" height="4" bgcolor="#BECFF1"></TD></TR>rn</TABLE>rn<br>rn </center>rn </div>rn</td></tr>rn</table>rn</body>rn</html>rn");
//[ /admin/user_check.jsp; Line: 109]
}catch(Exception e){ //[ /admin/user_check.jsp; Line: 110]
throw (e); //[ /admin/user_check.jsp; Line: 111]
} //[ /admin/user_check.jsp; Line: 112]
} catch (Throwable __ee) {
while (out != null && out != _originalOut) out = pageContext.popBody();
((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee);
}
- //before final close brace...
- }
-
-
- }