?? main_jsp.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 main_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");
List timeProductList = (List)session.getAttribute(Constants.TIME_PRODUCT_LIST_KEY);
List countProductList = (List)session.getAttribute(Constants.COUNT_PRODUCT_LIST_KEY);
Product product = null;
out.write("\r\n");
out.write("\r\n");
out.write("<HTML><HEAD><TITLE>Shopping Online</TITLE>\r\n");
out.write("<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">\r\n");
out.write("<LINK href=\"images/css.css\" type=text/css rel=stylesheet></HEAD>\r\n");
out.write("<BODY leftMargin=0 topMargin=0>\r\n");
out.write("<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD height=10></TD></TR></TBODY></TABLE>\r\n");
out.write("<TABLE height=148 cellSpacing=0 cellPadding=0 width=778 align=center border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR vAlign=top>\r\n");
out.write(" <TD width=8> </TD><!------精品顯示--------->\r\n");
out.write(" <TD width=236>\r\n");
out.write(" <TABLE width=\"375\" height=\"340\"><!--DWLayoutTable-->\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD width=348 height=1> </TD>\r\n");
out.write(" <TD height=\"1\" width=\"29\"></TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD height=\"13\" width=\"348\">\r\n");
out.write(" <TABLE id=AutoNumber1 style=\"BORDER-COLLAPSE: collapse\" \r\n");
out.write(" borderColor=#111111 height=20 cellSpacing=0 cellPadding=0 width=151 \r\n");
out.write(" background=images/fu.gif border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD align=middle width=82><B>精品推薦</B></TD>\r\n");
out.write(" <TD align=middle> </TD></TR></TBODY></TABLE></TD>\r\n");
out.write(" <TD height=\"13\" width=\"29\"> </TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD vAlign=top height=328 width=\"348\"><!-- ------------------circulation-------------------------->\r\n");
out.write(" <TABLE cellSpacing=0 cellPadding=0 width=\"103%\" border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write(" \r\n");
out.write("\r\n");
out.write("\t ");
if(timeProductList != null ){
for(int i = 0;i < timeProductList.size();i++)
{
product = (Product)timeProductList.get(i);
if (i%2==0){
out.write("\r\n");
out.write("\r\n");
out.write(" <TR>\r\n");
out.write(" <TD width=\"50%\"><BR>商品名稱:");
out.print(product.getName());
out.write("<BR><A \r\n");
out.write(" href=\"detail.do?productId=");
out.print(product.getId());
out.write("\" \r\n");
out.write(" target=main><IMG \r\n");
out.write(" src=\"");
out.print(product.getImage());
out.write("\" vspace=6 \r\n");
out.write(" border=0></A> <BR>會員價:");
out.print(product.getSaleprice());
out.write("元<BR><A \r\n");
out.write(" href=\"detail.do?productId=");
out.print(product.getId());
out.write("\" \r\n");
out.write(" target=main>詳情</A> <A href=\"buy.do?productId=");
out.print(product.getId());
out.write("\">定購<IMG \r\n");
out.write(" height=15 src=\"images/order.gif\" width=21 border=0></A> \r\n");
out.write(" </TD>\r\n");
out.write("\r\n");
out.write(" ");
}
else{
out.write("\r\n");
out.write(" <TD width=\"50%\"><BR>商品名稱:");
out.print(product.getName());
out.write("<BR><A \r\n");
out.write(" href=\"detail.do?productId=");
out.print(product.getId());
out.write("\" \r\n");
out.write(" target=main><IMG \r\n");
out.write(" src=\"");
out.print(product.getImage());
out.write("\" vspace=6 \r\n");
out.write(" border=0></A> <BR>會員價:");
out.print(product.getSaleprice());
out.write("元<BR><A \r\n");
out.write(" href=\"detail.do?productId=");
out.print(product.getId());
out.write("\" \r\n");
out.write(" target=main>詳情</A> <A href=\"buy.do?productId=");
out.print(product.getId());
out.write("\">定購<IMG \r\n");
out.write(" height=15 src=\"images/order.gif\" width=21 border=0></A> \r\n");
out.write(" </TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" \r\n");
out.write(" ");
}
}
}
out.write("\r\n");
out.write(" \r\n");
out.write(" </TBODY></TABLE><!-------------------循環結束--------------------------------></TD>\r\n");
out.write(" <TD height=\"328\" width=\"29\"> </TD></TR></TBODY></TABLE></TD><!------精品顯示結束---------->\r\n");
out.write(" <TD width=341>\r\n");
out.write(" <TABLE cellSpacing=0 cellPadding=0 width=\"188\" border=0><!--銷售排行榜顯示-->\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD width=187 height=1></TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD vAlign=top height=388 width=\"187\">\r\n");
out.write(" <TABLE cellSpacing=0 cellPadding=0 width=\"182\" border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD vAlign=top align=middle width=\"185\">\r\n");
out.write(" <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD height=3></TD></TR></TBODY></TABLE>\r\n");
out.write(" <TABLE cellSpacing=0 cellPadding=0 width=165 border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD align=middle><IMG height=4 \r\n");
out.write(" src=\"images/promo_list_top.gif\" width=\"100%\" \r\n");
out.write(" border=0></TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD align=middle bgColor=#dbc2b0>銷售排行</TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD align=middle>\r\n");
out.write(" <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" \r\n");
out.write("border=0>\r\n");
out.write(" <TBODY>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write(" \r\n");
out.write("\r\n");
out.write("\t ");
if(countProductList != null ){
for(int i = 0;i < countProductList.size();i++)
{
product = (Product)countProductList.get(i);
out.write("\r\n");
out.write("\r\n");
out.write(" <TR>\r\n");
out.write(" <TD width=\"70%\" bgColor=#f5efe7 height=22> \r\n");
out.write(" <A \r\n");
out.write(" href=\"detail.do?productId=");
out.print(product.getId());
out.write("\" \r\n");
out.write(" target=main>");
out.print(product.getName());
out.write("</A></TD>\r\n");
out.write(" <TD width=\"30%\" bgColor=#f5efe7>");
out.print(product.getSalecount());
out.write("</TD></TR>\r\n");
out.write(" \r\n");
out.write(" ");
}
}
out.write("\r\n");
out.write(" \r\n");
out.write(" \r\n");
out.write("\r\n");
out.write("\t</TBODY></TABLE></TD></TR>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD></TD></TR></TBODY></TABLE>\r\n");
out.write(" \r\n");
out.write("</BODY></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 + -