?? _todayqifototal__jsp.java
字號:
/*
* JSP generated by Resin-3.0.8 (built Tue, 08 Jun 2004 02:25:40 PDT)
*/
package _jsp._dl;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import java.util.Date;
import java.text.*;
public class _todayqifototal__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);
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_string1, 0, _jsp_string1.length);
Date currTime = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd",Locale.US);
String time=new String(formatter.format(currTime).getBytes("iso-8859-1"));
out.write(_jsp_string2, 0, _jsp_string2.length);
session.setAttribute("time",time);
out.write(_jsp_string2, 0, _jsp_string2.length);
String regtime=(String) session.getAttribute("time");
out.write(_jsp_string3, 0, _jsp_string3.length);
int i=1;
String dlid=(String) session.getAttribute("dlid");
rs=stmt.executeQuery("select count(*) from qyml where regtime='"+regtime+"' and dlid='"+dlid+"' and comeon=1");
while(rs.next()) i = rs.getInt(1) ;
out.write(_jsp_string4, 0, _jsp_string4.length);
out.print((i));
out.write(_jsp_string5, 0, _jsp_string5.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()
{
return _caucho_depends;
}
public void _caucho_addDepend(com.caucho.make.PersistentDependency depend)
{
super._caucho_addDepend(depend);
_caucho_depends.add(depend);
}
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.util.CauchoSystem.getVersionId() != 1174304630)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.make.Dependency depend;
depend = (com.caucho.make.Dependency) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public com.caucho.java.LineMap _caucho_getLineMap()
{
return _caucho_line_map;
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.java.LineMap lineMap,
com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
mergePath.addMergePath(appDir);
mergePath.addMergePath(resinHome);
com.caucho.loader.DynamicClassLoader loader;
loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader();
String resourcePath = loader.getResourcePathSpecificFirst();
mergePath.addClassPath(resourcePath);
_caucho_line_map = new com.caucho.java.LineMap("_todayqifototal__jsp.java", "foo");
_caucho_line_map.add("/DL/../conn/conn.jsp", 6, 34);
_caucho_line_map.add("/DL/../conn/time.jsp", 6, 46);
_caucho_line_map.add(9, 50);
_caucho_line_map.add("/DL/todayqifototal.jsp", 4, 52);
_caucho_line_map.add(6, 54);
_caucho_line_map.add(10, 59);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("DL/todayqifototal.jsp"), "4RUSp/QNAL1lup8WXbmlrQ==", false);
_caucho_depends.add(depend);
depend = new com.caucho.vfs.Depend(appDir.lookup("conn/conn.jsp"), "Y8eOeqaPTEc4uE5RVs4RUg==", false);
_caucho_depends.add(depend);
depend = new com.caucho.vfs.Depend(appDir.lookup("conn/time.jsp"), "ihl6LzOAw9TTH3Ur9mELWQ==", false);
_caucho_depends.add(depend);
}
private final static char []_jsp_string0;
private final static char []_jsp_string4;
private final static char []_jsp_string3;
private final static char []_jsp_string2;
private final static char []_jsp_string1;
private final static char []_jsp_string5;
static {
_jsp_string0 = "\r\n\r\n<link rel=\"stylesheet\" href=\"../conn/laba.css\" type=\"text/css\">\r\n\r\n\r\n\r\n".toCharArray();
_jsp_string4 = "\r\n<font color=red>".toCharArray();
_jsp_string3 = "\r\n<body bgcolor=fffff7>\r\n".toCharArray();
_jsp_string2 = "\r\n".toCharArray();
_jsp_string1 = "\r\n\r\n\r\n\r\n\r\n\r\n".toCharArray();
_jsp_string5 = "</font>".toCharArray();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -