📄 userinfo_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import check.indent;
public final class userinfo_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,
null, 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\r\n");
String username = (String)session.getAttribute("username");
if ( username == null || username.equals("") ){
response.sendRedirect("login.jsp?msg=nologin");
}
out.write("\r\n\r\n\r\n");
check.purchase my_indent = null;
synchronized (_jspx_page_context) {
my_indent = (check.purchase) _jspx_page_context.getAttribute("my_indent", PageContext.PAGE_SCOPE);
if (my_indent == null){
my_indent = new check.purchase();
_jspx_page_context.setAttribute("my_indent", my_indent, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n\r\n");
String mesg = "";
String Uid = (String) session.getAttribute("userid");
long uid = 0;
try {
uid = Long.parseLong(Uid);
} catch (Exception e) {
uid =0;
mesg = "出现不可预知错误!";
}
if (!my_indent.getIndent(uid))
mesg = "你在本站还没有购买过图书。" ;
out.write("\r\n\r\n<html>\r\n<head>\r\n<title>注册信息</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<script type=\"\" language=\"javascript\">\r\n\r\nfunction openScript(url,name, width, height){\r\n\tvar Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );\r\n}\r\n\r\n</script>\r\n<link rel=\"stylesheet\" href=\"books.css\" type=\"text/css\">\r\n<style type=\"text/css\">\r\n<!--\r\nbody {\r\n\tbackground-color: #FFFFFF;\r\n\tbackground-image: url(images/bg05.jpg);\r\n}\r\n.style4 {\r\n\tfont-size: 18px;\r\n\tcolor: #330099;\r\n}\r\n.style5 {\r\n\tcolor: #FF0000;\r\n\tfont-size: 36px;\r\n}\r\n.style6 {\r\n\tcolor: #0000FF;\r\n\tfont-size: 14px;\r\n}\r\n-->\r\n</style></head>\r\n\r\n<body text=\"#000000\">\r\n<div align=\"center\" class=\"style4\">\r\n <p> </p>\r\n <p> </p>\r\n <p> </p>\r\n <p class=\"style5\"> 恭喜,注册成功!</p>\r\n <p class=\"style5 style6\"> </p>\r\n <p class=\"style5 style6\"><a href=\"index.jsp\">返回首页</a></p>\r\n <p> </p>\r\n</div>\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 + -