📄 haveborrowtemp_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
public final class haveborrowtemp_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
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;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>History</title>\r\n</head>\r\n\r\n<body>\r\n");
login.Library Library = null;
synchronized (session) {
Library = (login.Library) _jspx_page_context.getAttribute("Library", PageContext.SESSION_SCOPE);
if (Library == null){
Library = new login.Library();
_jspx_page_context.setAttribute("Library", Library, PageContext.SESSION_SCOPE);
out.write('\r');
out.write('\n');
}
}
out.write('\r');
out.write('\n');
int number=0;
try{
String id = Library.getid();
Connection conn=Library.getConn();
Statement stmt=conn.createStatement();
ResultSet rs = stmt.executeQuery("select * from borrowbook where id ='" + id + "'");
while (rs.next()){
number++;
}
Library.setmaxnumber(number);
if(Library.getmaxnumber()!=0){
Statement stmt1=conn.createStatement();
ResultSet rs1 = stmt1.executeQuery("select * from borrowbook where id ='" + id + "'");
if(rs1.next()){
Library.setbsserialnumber(rs1.getString("serialnumber"));
Library.setbssortnumber(rs1.getString("sortnumber"));
Library.setbstitle(rs1.getString("title"));
Library.setbsborrowdata(rs1.getString("borrowdata"));
Library.setbsshouldreturndata(rs1.getString("shouldreturndata"));
Library.setbsreturndata(rs1.getString("returndata"));
Library.setbsoverdata(rs1.getString("overdata"));
Library.setbsfee(rs1.getString("fee"));
Library.setbsreturnmoney(rs1.getString("returnmoney"));
Library.setnumber(1);}
}
response.sendRedirect("haveborrow.jsp");
}catch (Exception ex) {
response.sendRedirect("fail.jsp");
ex.printStackTrace();}
out.write("\r\n</body>\r\n</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -