⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_005fselect_jsp.java

📁 模仿Taobao购物网
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import taobaoproject.*;

public final class user_005fSelect_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(1);
    _jspx_dependants.add("/check.jsp");
  }

  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=GBK");
      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");
      out.write("\r\n");
      out.write("\r\n");

if((String)session.getValue("Enter") != "true") {
  String errmsg = "error2";
  response.sendRedirect("login.jsp?errmsg="+errmsg);
}

      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "head.jsp", out, true);
      out.write('\r');
      out.write('\n');
      taobaoproject.MemberInfo_Bean memberInfo_Bean = null;
      synchronized (_jspx_page_context) {
        memberInfo_Bean = (taobaoproject.MemberInfo_Bean) _jspx_page_context.getAttribute("memberInfo_Bean", PageContext.PAGE_SCOPE);
        if (memberInfo_Bean == null){
          memberInfo_Bean = new taobaoproject.MemberInfo_Bean();
          _jspx_page_context.setAttribute("memberInfo_Bean", memberInfo_Bean, PageContext.PAGE_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.introspect(_jspx_page_context.findAttribute("memberInfo_Bean"), request);
      out.write('\r');
      out.write('\n');

String userName = (String)session.getValue("username");
MemberBean memberBean = memberInfo_Bean.isIsselect(userName);

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>\r\n");
      out.write("飞梦通信:查看个人信息\r\n");
      out.write("</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("  <!--\r\n");
      out.write("body {\r\n");
      out.write("  font-family: \"Times New Roman\", Times, serif;\r\n");
      out.write("  font-size:14px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("td {\r\n");
      out.write("\tfont-family: \"Times New Roman\", Times, serif;\r\n");
      out.write("        font-size:12px;line-height:inherit;height:25px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("th {\r\n");
      out.write("\tfont-family: \"Times New Roman\", Times, serif;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");

String name = memberBean.getName();
if(name == null){
 name = "";
 }
 String sex = memberBean.getSex();
 if(sex == null){
 sex = "";
 }
 String trueName = memberBean.getTrueName();
 if(trueName == null){
 trueName = "";
 }
 String phonecode =memberBean.getPhoneCode();
 if(phonecode == null){
 phonecode = "";
 }
 String emails = memberBean.getEmails();
 if(emails == null){
 emails = "";
 }
 String city =memberBean.getCity();
 if(city == null){
 city = "";
 }
 String address = memberBean.getAddress();
 if(address == null){
 address = "";
 }
 String postCode = memberBean.getPostCode();
 if(postCode == null){
   postCode = "";
 }
 
      out.write("\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("<body bgcolor=\"#ffffff\">\r\n");
      out.write("<div align=\"center\">\r\n");
      out.write("  <form name=\"form1\" action=\"checkout\" method=\"GET\" onsubmit=\"return MM_form()\">\r\n");
      out.write("  <table width=\"600\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#D5D5B5\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td valign=\"middle\" align=\"center\" height=\"37\" colspan=\"2\" bgcolor=\"#4480DD\"><br /><h2>我的个人信息</h2></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td colspan=\"2\" height=\"10\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td width=\"200\" align=\"right\">会员ID :</td>\r\n");
      out.write("      <td align=\"left\" width=\"400\">&nbsp;&nbsp;");
      out.print(memberBean.getMemberID() );
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("     <tr>\r\n");
      out.write("      <td align=\"right\">会员名 : </td>\r\n");
      out.write("      <td align=\"left\">&nbsp;&nbsp;");
      out.print(name );
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"right\">会员性别 : </td>\r\n");
      out.write("      <td align=\"left\">&nbsp;&nbsp;");
      out.print(sex );
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"right\">真实姓名 : </td>\r\n");
      out.write("      <td align=\"left\">&nbsp;&nbsp;");
      out.print(trueName );
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"right\">会员电话号码 :</td>\r\n");
      out.write("      <td align=\"left\">&nbsp;&nbsp;");
      out.print(phonecode );
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"right\">会员Email地址 : </td>\r\n");
      out.write("      <td align=\"left\">&nbsp;&nbsp;");
      out.print(emails );
      out.write(" </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"right\">会员所在城市 : </td>\r\n");
      out.write("      <td align=\"left\">&nbsp;&nbsp;");
      out.print(city );
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"right\">会员住址 : </td>\r\n");
      out.write("      <td align=\"left\">&nbsp;&nbsp;");
      out.print(address );
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"right\">会员邮编 : </td>\r\n");
      out.write("      <td align=\"left\">&nbsp;&nbsp;");
      out.print(postCode );
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td colspan=\"2\" height=\"10\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr bgcolor=\"#ffffff\">\r\n");
      out.write("      <td height=\"30\"></td>\r\n");
      out.write("      <td><a href=\"myshop.jsp\"><strong>返回</strong> </a>&nbsp;&nbsp;<a href=\"user_Update.jsp\"><strong> 修改个人信息</strong></a></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("  </form>\r\n");
      out.write("</div>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "footer.jsp", out, true);
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</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 + -