📄 _login__jsp.java
字号:
/*
* JSP generated by Resin-3.0.8 (built Tue, 08 Jun 2004 02:25:40 PDT)
*/
package _jsp;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
public class _login__jsp extends com.caucho.jsp.JavaPage{
private boolean _caucho_isDead;
public void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException
{
javax.servlet.http.HttpSession session = request.getSession(true);
com.caucho.server.webapp.Application _jsp_application = _caucho_getApplication();
javax.servlet.ServletContext application = _jsp_application;
com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true);
javax.servlet.jsp.JspWriter out = pageContext.getOut();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
response.setContentType("text/html;charset=gb2312");
request.setCharacterEncoding("GB2312");
try {
out.write(_jsp_string0, 0, _jsp_string0.length);
if ((String) session.getAttribute("login")==null){
out.write(_jsp_string1, 0, _jsp_string1.length);
if ((String) session.getAttribute("flash")==null){
out.write(_jsp_string2, 0, _jsp_string2.length);
}else{
out.write(_jsp_string3, 0, _jsp_string3.length);
}
out.write(_jsp_string4, 0, _jsp_string4.length);
}else{
out.write(_jsp_string5, 0, _jsp_string5.length);
out.print(((String) session.getAttribute("loginname")));
out.write(_jsp_string6, 0, _jsp_string6.length);
if ((String) session.getAttribute("login")==null){
String all_curPage = request.getRequestURI();//\u5f97\u5230\u5f53\u524d\u9875\u9762\u7684\u8def\u5f84\u548c\u540d\u79f0
String all_curQueryString = request.getQueryString();//\u5f97\u5230\u5f53\u524d\u9875\u9762\u7684\u53c2\u6570
String referer = all_curPage;
if(all_curQueryString!=null){
referer += "?" + all_curQueryString;
}
response.sendRedirect("../deng.jsp?referer="+java.net.URLEncoder.encode(referer));//\u4e00\u5b9a\u8981\u7f16\u7801,\u5426\u5219\u7279\u6b8a\u5b57\u7b26\u4f20\u4e0d\u8fc7\u53bb
}
out.write(_jsp_string7, 0, _jsp_string7.length);
Connection con;
Statement stmt;
ResultSet rs;
Class.forName("com.mysql.jdbc.Driver");
DriverManager.registerDriver(new com.mysql.jdbc.Driver());
String dbUrl="jdbc:mysql://localhost:3306/laba?useUnicode=true&characterEncoding=GB2312";
String dbUser="root";
String dbPwd="1982o7o9";
con=java.sql.DriverManager.getConnection(dbUrl,dbUser,dbPwd);
stmt=con.createStatement();
out.write(_jsp_string8, 0, _jsp_string8.length);
stmt = con.createStatement() ;
String userid=(String) session.getAttribute("userid");
rs=stmt.executeQuery("SELECT * from grade where memid='"+userid+"' order by id desc");
rs.next();
out.write(_jsp_string9, 0, _jsp_string9.length);
if(Integer.parseInt(rs.getString("fen"))>0&&Integer.parseInt(rs.getString("fen"))<100){
out.write(_jsp_string10, 0, _jsp_string10.length);
out.print((rs.getString("fen")));
out.write(_jsp_string11, 0, _jsp_string11.length);
}else{
out.write(_jsp_string12, 0, _jsp_string12.length);
if(Integer.parseInt(rs.getString("fen"))>99&&Integer.parseInt(rs.getString("fen"))<200){
out.write(_jsp_string13, 0, _jsp_string13.length);
out.print((rs.getString("fen")));
out.write(_jsp_string11, 0, _jsp_string11.length);
}else{
out.write(_jsp_string9, 0, _jsp_string9.length);
if(Integer.parseInt(rs.getString("fen"))>199&&Integer.parseInt(rs.getString("fen"))<300){
out.write(_jsp_string14, 0, _jsp_string14.length);
out.print((rs.getString("fen")));
out.write(_jsp_string11, 0, _jsp_string11.length);
}else{
out.write(_jsp_string9, 0, _jsp_string9.length);
if(Integer.parseInt(rs.getString("fen"))>299&&Integer.parseInt(rs.getString("fen"))<400){
out.write(_jsp_string15, 0, _jsp_string15.length);
out.print((rs.getString("fen")));
out.write(_jsp_string11, 0, _jsp_string11.length);
}else{
out.write(_jsp_string9, 0, _jsp_string9.length);
if(Integer.parseInt(rs.getString("fen"))>399&&Integer.parseInt(rs.getString("fen"))<500){
out.write(_jsp_string16, 0, _jsp_string16.length);
out.print((rs.getString("fen")));
out.write(_jsp_string11, 0, _jsp_string11.length);
}else{
out.write(_jsp_string17, 0, _jsp_string17.length);
if(Integer.parseInt(rs.getString("fen"))>499&&Integer.parseInt(rs.getString("fen"))<600){
out.write(_jsp_string18, 0, _jsp_string18.length);
out.print((rs.getString("fen")));
out.write(_jsp_string11, 0, _jsp_string11.length);
}else{
out.write(_jsp_string17, 0, _jsp_string17.length);
if(Integer.parseInt(rs.getString("fen"))>599&&Integer.parseInt(rs.getString("fen"))<700){
out.write(_jsp_string19, 0, _jsp_string19.length);
out.print((rs.getString("fen")));
out.write(_jsp_string11, 0, _jsp_string11.length);
}else{
out.write(_jsp_string20, 0, _jsp_string20.length);
if(Integer.parseInt(rs.getString("fen"))>699&&Integer.parseInt(rs.getString("fen"))<800){
out.write(_jsp_string21, 0, _jsp_string21.length);
out.print((rs.getString("fen")));
out.write(_jsp_string11, 0, _jsp_string11.length);
}else{
out.write(_jsp_string17, 0, _jsp_string17.length);
if(Integer.parseInt(rs.getString("fen"))>799&&Integer.parseInt(rs.getString("fen"))<10000){
out.write(_jsp_string22, 0, _jsp_string22.length);
out.print((rs.getString("fen")));
out.write(_jsp_string11, 0, _jsp_string11.length);
}else{
out.write(_jsp_string12, 0, _jsp_string12.length);
if(Integer.parseInt(rs.getString("fen"))>9999){
out.write(_jsp_string23, 0, _jsp_string23.length);
}else{
out.write(_jsp_string20, 0, _jsp_string20.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string25, 0, _jsp_string25.length);
}
out.write(_jsp_string26, 0, _jsp_string26.length);
if ((String) session.getAttribute("login")==null){
out.write(_jsp_string27, 0, _jsp_string27.length);
}else{
out.write(_jsp_string28, 0, _jsp_string28.length);
}
out.write(_jsp_string24, 0, _jsp_string24.length);
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
com.caucho.jsp.QJspFactory.freePageContext(pageContext);
}
}
private com.caucho.java.LineMap _caucho_line_map;
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public java.util.ArrayList _caucho_getDependList()
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -