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

📄 dingdanxianxing_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 DingDanXianXing_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\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("td {\r\n");
      out.write("\tfont-family: \"Times New Roman\", Times, serif;\r\n");
      out.write("\tfont-size:14;\r\n");
      out.write("\theight:20px;\r\n");
      out.write("}\r\n");
      out.write("th {\r\n");
      out.write("\tfont-family: \"Times New Roman\", Times, serif;\r\n");
      out.write("\tfont-size:18;\r\n");
      out.write("\theight:30px;\r\n");
      out.write("}\r\n");
      out.write(".gg {font-size: 20px; }\r\n");
      out.write(".hh {background:#D5D5B5}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");

int OrderID = 0;
String orderIDss = request.getParameter("orderID");
if(orderIDss != null && !orderIDss.equals("")) {
  OrderID = java.lang.Integer.parseInt(orderIDss);
}
else {
  response.sendRedirect("DingDanErro.jsp");
}
ArrayList shouJiList = new orderInfo_Bean().selectddif(OrderID);
orderInfo_Bean orderInfo_Bean = new orderInfo_Bean();
int j = 0;

orderInfo_Bean orderInfo = new orderInfo_Bean();
ArrayList dingdanList = orderInfo.selectXiangXi(OrderID);
orderInfo = (orderInfo_Bean)dingdanList.get(0);


      out.write("\r\n");
      out.write("<body bgcolor=\"#D5D5B5\">\r\n");
      out.write("<div class=\"hh\" align=\"center\">\r\n");
      out.write("  <br />\r\n");
      out.write("  <h2>订单号:");
      out.print(OrderID );
      out.write("&nbsp;的详细信息</h2>\r\n");
      out.write("  <table bgcolor=\"#D5D5B5\" border=\"1\" width=\"500\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <th class=\"gg\" align=\"center\" colspan=\"4\">订单商品列表</th>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td width=\"12%\">编号</td>\r\n");
      out.write("      <td width=\"45%\">商品名称</td>\r\n");
      out.write("      <td width=\"30%\">商品价格</td>\r\n");
      out.write("      <td width=\"12%\">购买数量</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    ");

    for(int i = 0; i< shouJiList.size(); i++) {
      j++;
      orderInfo_Bean = (orderInfo_Bean)shouJiList.get(i);

    
      out.write("\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td>");
      out.print(j );
      out.write("</td>\r\n");
      out.write("      <td>");
      out.print(orderInfo_Bean.getGoodsname() );
      out.write("</td>\r\n");
      out.write("      <td>");
      out.print(orderInfo_Bean.getMemberPrice() );
      out.write("</td>\r\n");
      out.write("      <td>");
      out.print(orderInfo_Bean.getBuynum() );
      out.write("</td>\r\n");
      out.write("    </tr>");
} 
      out.write("\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"right\" colspan=\"2\">总金额:</td>\r\n");
      out.write("      <td colspan=\"2\">");
      out.print(orderInfo.getTotalPrice() );
      out.write("&nbsp;&nbsp;元</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("<br />\r\n");
      out.write("  <table bgcolor=\"#D5D5B5\" width=\"500\" border=\"1\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <th class=\"gg\" colspan=\"4\">订单信息</th>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"right\" width=\"20%\">收货人姓名:</td>\r\n");
      out.write("      <td width=\"20%\">");
      out.print(orderInfo.getReceiverName() );
      out.write("</td>\r\n");
      out.write("      <td align=\"right\" width=\"20%\">收货人地址:</td>\r\n");
      out.write("      <td width=\"40%\">");
      out.print(orderInfo.getReceiverAdress() );
      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>");
      out.print(orderInfo.getReceiverPostCode() );
      out.write("</td>\r\n");
      out.write("      <td align=\"right\">收货人电话 :</td>\r\n");
      out.write("      <td>");
      out.print(orderInfo.getReceiverPhone() );
      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>");
      out.print(orderInfo.getShipType() );
      out.write("</td>\r\n");
      out.write("      <td align=\"right\">支付方式类型 :</td>\r\n");
      out.write("      <td>");
      out.print(orderInfo.getPayType() );
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("  <br />\r\n");
      out.write("  <a href=\"myshop.jsp\">返回我的帐户</a>\r\n");
      out.write("  <br /><br />\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 + -