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

📄 cashok_jsp.java

📁 ShoppingOnline 是一个网上购物系统的源代码 由eclipse+jsp+tomcat+strust
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import cn.com.shoppingonline.*;
import java.util.*;

public final class cashOk_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=UTF-8");
      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("\t\r\n");

	Member member = (Member)session.getAttribute(Constants.LOGIN_USER_KEY);
	if(member != null ){

      out.write("\r\n");
      out.write("\r\n");
      out.write("<head>\r\n");
      out.write("<link href=\"images/css.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>购物成功!请填写收货人的详细信息</title>\r\n");
      out.write("</head> \r\n");
      out.write("<body topmargin=\"0\">\r\n");
      out.write("<font color=\"#FFFFFF\"><b> \r\n");
      out.write("\r\n");
      out.write("</b></FONT> \r\n");
      out.write("<br>\r\n");
      out.write("<table width=\"400\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"65\">\r\n");
      out.write("  <tr> \r\n");
      out.write("    <td valign=\"top\"> \r\n");
      out.write("      <table width=\"382\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td valign=\"top\" height=\"120\" width=\"380\"> <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" height=\"5\" align=\"center\">              \r\n");
      out.write("              <tr> \r\n");
      out.write("                <td>\r\n");
      out.write("\t\t\t\t<images border=\"0\" src=\"images/promo_list_top.gif\" width=\"100%\" height=\"4\"></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("              <tr> \r\n");
      out.write("                <td height=\"17\" bgcolor=\"#DBC2B0\" align=\"center\">谢谢您!</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("              <tr> \r\n");
      out.write("                <td width=\"380\"> <form method=\"POST\" language=\"javascript\" name=\"form1\" action=\"createOrder.do\">\r\n");
      out.write("                    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\r\n");
      out.write("                      <tr> \r\n");
      out.write("                        <td><table width=\"100%\" height=\"34\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("                            <tr>\r\n");
      out.write("                              <td width=\"398\" height=\"120\" valign=\"bottom\" bgcolor=\"#F5EFE7\" >\r\n");
      out.write("                                <div align=\"center\">\r\n");
      out.write("                                  <center> \r\n");
      out.write("                                <table width=\"90%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" height=\"243\">\r\n");
      out.write("                                  <tr background=\"images/tile_bg.gif\"> \r\n");
      out.write("                                    <td height=\"25\" colspan=\"2\"><b>请填写收货人的详细信息</b></td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                  <tr bgcolor=\"#FFFFFF\"> \r\n");
      out.write("                                    <td width=\"19%\" height=\"25\" bgcolor=\"#F5EFE7\"> \r\n");
      out.write("                                      <div align=\"right\">姓名:</div>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                    <td width=\"81%\" height=\"25\" bgcolor=\"#F5EFE7\">\r\n");
      out.write("                                      <input style=\"FONT-SIZE: 12px; WIDTH: 110px\" type=\"text\" name=\"realname\" size=\"20\" class=input value=\"");
      out.print(member.getRealname());
      out.write("\">\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                  <tr bgcolor=\"#FFFFFF\"> \r\n");
      out.write("                                    <td width=\"19%\" height=\"25\" bgcolor=\"#F5EFE7\">   \r\n");
      out.write("                                      <div align=\"right\">地址:</div>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                    <td height=\"25\" bgcolor=\"#F5EFE7\">\r\n");
      out.write("                                      <input style=\"FONT-SIZE: 12px; WIDTH: 210px\" type=\"text\" name=\"address\" size=\"40\" class=input value=\"");
      out.print(member.getAddress());
      out.write("\">\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                  <tr bgcolor=\"#FFFFFF\"> \r\n");
      out.write("                                    <td width=\"19%\" height=\"25\" bgcolor=\"#F5EFE7\">   \r\n");
      out.write("                                      <div align=\"right\">邮编:</div>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                    <td height=\"25\" bgcolor=\"#F5EFE7\">  \r\n");
      out.write("                                      <input style=\"FONT-SIZE: 12px; WIDTH: 110px\" type=\"text\" name=\"zip\" size=\"10\" class=input value=\"");
      out.print(member.getZip());
      out.write("\">\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                  <tr bgcolor=\"#FFFFFF\"> \r\n");
      out.write("                                    <td width=\"19%\" height=\"25\" bgcolor=\"#F5EFE7\"> \r\n");
      out.write("                                      <div align=\"right\">电话:</div>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                    <td height=\"25\" bgcolor=\"#F5EFE7\">  \r\n");
      out.write("                                      <input style=\"FONT-SIZE: 12px; WIDTH: 110px\" type=\"text\" name=\"tel\" size=\"20\" class=input value=\"");
      out.print(member.getTel());
      out.write("\">\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                  <tr bgcolor=\"#FFFFFF\"> \r\n");
      out.write("                                    <td width=\"19%\" height=\"25\" bgcolor=\"#F5EFE7\"> \r\n");
      out.write("                                      <div align=\"right\">E-mail:</div>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                    <td height=\"25\" bgcolor=\"#F5EFE7\">   \r\n");
      out.write("                                      <input style=\"FONT-SIZE: 12px; WIDTH: 110px\" type=\"text\" name=\"email\" size=\"20\" class=input value=\"");
      out.print(member.getEmail());
      out.write("\">\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                  <tr bgcolor=\"#FFFFFF\"> \r\n");
      out.write("                                    <td width=\"19%\" height=\"19\" bgcolor=\"#F5EFE7\"> \r\n");
      out.write("                                      <div align=\"right\">付款方式:</div>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                    <td height=\"19\" bgcolor=\"#F5EFE7\">     \r\n");
      out.write("                                      <select size=\"1\" name=\"payment\">\r\n");
      out.write("                                        <option value=\"货到付款\">货到付款</option>\r\n");
      out.write("                                        <option value=\"银行转帐\">银行转帐</option>\r\n");
      out.write("                                        <option value=\"邮政汇款\">邮政汇款</option>\r\n");
      out.write("                                      </select>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                  <tr bgcolor=\"#FFFFFF\">\r\n");
      out.write("                                    <td width=\"19%\" height=\"39\" bgcolor=\"#F5EFE7\">\r\n");
      out.write("                                      <div align=\"right\">备注:<br>\r\n");
      out.write("                                        (50汉字内) </div>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                    <td height=\"39\" bgcolor=\"#F5EFE7\">     \r\n");
      out.write("                                      <textarea style=\"FONT-SIZE: 12px; WIDTH: 250px\" name=\"memo\" cols=\"30\" class=\"input\" rows=\"3\"></textarea>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                  <tr bgcolor=\"#FFFFFF\"> \r\n");
      out.write("                                    <td height=\"35\" colspan=\"2\" bgcolor=\"#F5EFE7\"> \r\n");
      out.write("                                      <table width=\"40%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("                                        <tr> \r\n");
      out.write("                                          <td> \r\n");
      out.write("                                            <div align=\"center\"> \r\n");
      out.write("                                              <input align=absMiddle alt=确认 ȷ��  name=\"B1\"       src=\"images/ok.gif\" type=image  width=\"45\" height=\"20\">\r\n");
      out.write("                                            </div>\r\n");
      out.write("                                          </td>\r\n");
      out.write("                                         <tr>\r\n");
      out.write("                                      </table>\r\n");
      out.write("                                    </td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                </table>\r\n");
      out.write("                                  </center>\r\n");
      out.write("                              </div>\r\n");
      out.write("                                <br> <table width=\"100%\" height=\"25\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("                                  <tr> \r\n");
      out.write("                                    <td valign=\"middle\"><div align=\"center\"><images src=\"images/seperator.gif\" width=\"359\" height=\"1\"></div></td>\r\n");
      out.write("                                  </tr>\r\n");
      out.write("                                </table></td>\r\n");
      out.write("                            </tr>\r\n");
      out.write("                            <tr> \r\n");
      out.write("                              <td height=\"1\" colspan=\"3\" valign=\"top\"></td>\r\n");
      out.write("                            </tr>\r\n");
      out.write("                          </table> </td>\r\n");
      out.write("                      </tr>\r\n");
      out.write("                    </table>   \r\n");
      out.write("                 </form></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            </table></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\t");

}
	else{
		out.println("<center><font size=5 color=red>用户未登录</font></center>");
	}
    
      out.write("\r\n");
      out.write("\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 + -