📄 login_0005fconfirm_0002ejsp_jsp.java
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class login_0005fconfirm_0002ejsp_jsp extends HttpJspBase {
// begin [file="/login_confirm.jsp";from=(8,0);to=(8,52)]
// end
static {
}
public login_0005fconfirm_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=GB18030");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/login_confirm.jsp";from=(0,52);to=(7,0)]
out.write("\r\n<html>\r\n<head>\r\n<title>登录检查</title>\r\n</head>\r\n<body>\r\n\r\n");
// end
// HTML // begin [file="/login_confirm.jsp";from=(7,45);to=(8,0)]
out.write("\r\n");
// end
// begin [file="/login_confirm.jsp";from=(8,0);to=(8,52)]
book.bk bkId = null;
boolean _jspx_specialbkId = false;
synchronized (pageContext) {
bkId= (book.bk)
pageContext.getAttribute("bkId",PageContext.PAGE_SCOPE);
if ( bkId == null ) {
_jspx_specialbkId = true;
try {
bkId = (book.bk) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "book.bk");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"book.bk", exc);
}
pageContext.setAttribute("bkId", bkId, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialbkId == true) {
// end
// begin [file="/login_confirm.jsp";from=(8,0);to=(8,52)]
}
// end
// HTML // begin [file="/login_confirm.jsp";from=(8,52);to=(9,0)]
out.write("\r\n");
// end
// begin [file="/login_confirm.jsp";from=(9,2);to=(20,0)]
String name=request.getParameter("login");
name=new String(name.getBytes("ISO8859-1"));
String pwd=request.getParameter("password");
pwd=new String(pwd.getBytes("ISO8859-1"));
String sql="select * from 客户信息表 where logname='"+name+"'and password='"+pwd+"'";
ResultSet rs=bkId.executeQuery(sql);
if(rs.next())
{
rs.close();
session.putValue("username",name);
// end
// HTML // begin [file="/login_confirm.jsp";from=(20,2);to=(21,0)]
out.write("\r\n");
// end
// begin [file="/login_confirm.jsp";from=(21,0);to=(21,32)]
if (true) {
out.clear();
String _jspx_qfStr = "";
pageContext.forward("browse.jsp" + _jspx_qfStr);
return;
}
// end
// HTML // begin [file="/login_confirm.jsp";from=(21,32);to=(22,0)]
out.write("\r\n");
// end
// begin [file="/login_confirm.jsp";from=(22,2);to=(25,0)]
}
else{
rs.close();
// end
// HTML // begin [file="/login_confirm.jsp";from=(25,2);to=(26,0)]
out.write("\r\n");
// end
// begin [file="/login_confirm.jsp";from=(26,0);to=(26,32)]
if (true) {
out.clear();
String _jspx_qfStr = "";
pageContext.forward("login.html" + _jspx_qfStr);
return;
}
// end
// HTML // begin [file="/login_confirm.jsp";from=(26,32);to=(27,0)]
out.write("\r\n");
// end
// begin [file="/login_confirm.jsp";from=(27,2);to=(27,3)]
}
// end
// HTML // begin [file="/login_confirm.jsp";from=(27,5);to=(31,0)]
out.write("\r\n</body>\r\n</html>\r\n\r\n");
// 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);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -