📄 index_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import taobaoproject.*;
public final class index_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=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");
taobaoproject.GoodsBean goodsBean = null;
synchronized (session) {
goodsBean = (taobaoproject.GoodsBean) _jspx_page_context.getAttribute("goodsBean", PageContext.SESSION_SCOPE);
if (goodsBean == null){
goodsBean = new taobaoproject.GoodsBean();
_jspx_page_context.setAttribute("goodsBean", goodsBean, PageContext.SESSION_SCOPE);
}
}
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspect(_jspx_page_context.findAttribute("goodsBean"), request);
out.write('\r');
out.write('\n');
taobaoproject.GoodsInfo_Bean goodsInfosBean = null;
synchronized (session) {
goodsInfosBean = (taobaoproject.GoodsInfo_Bean) _jspx_page_context.getAttribute("goodsInfosBean", PageContext.SESSION_SCOPE);
if (goodsInfosBean == null){
goodsInfosBean = new taobaoproject.GoodsInfo_Bean();
_jspx_page_context.setAttribute("goodsInfosBean", goodsInfosBean, PageContext.SESSION_SCOPE);
}
}
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspect(_jspx_page_context.findAttribute("goodsInfosBean"), request);
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("<link href=\"css/bottom.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("<link href=\"css/layout.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("<link href=\"css/channel.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("<LINK href=\"css/top-nav.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n");
out.write("<LINK href=\"css/browse.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#ffffff\">\r\n");
out.write("<DIV id=ChannelPage><!--Left Pannel start-->\r\n");
out.write("<DIV id=LeftPannel><!--store start-->\r\n");
out.write("<DIV id=lefttable-top>\r\n");
out.write("<DIV class=tdbg-left></DIV>\r\n");
out.write("<DIV class=text>特价商品</DIV>\r\n");
out.write("<DIV class=tdbg-right></DIV></DIV>\r\n");
out.write("<DIV id=store>\r\n");
out.write("<!--特价商品列表开始 -->\r\n");
ArrayList isDiscountList = goodsInfosBean.getGoods_List(8,-1,-1,"","","是","");
for(int i =0;i< isDiscountList.size();i++) {
GoodsBean isDiscountGoods = new GoodsBean();
isDiscountGoods = (GoodsBean)isDiscountList.get(i);
out.write("\r\n");
out.write("<DIV class=Pic align=center>\r\n");
out.write("<a href=\"xiangxi.jsp?goodsID=");
out.print(isDiscountGoods.getGoodsID() );
out.write("\" >\r\n");
out.write(" <IMG style=\"WIDTH: 100px; HEIGHT: 100px\" alt=appliance1 hspace=0 src=\"");
out.print(isDiscountGoods.getGoodsUrl() );
out.write("\" border=0></A><BR>\r\n");
out.write("<a href=\"xiangxi.jsp?goodsID=");
out.print(isDiscountGoods.getGoodsID() );
out.write('"');
out.write(' ');
out.write('>');
out.print(isDiscountGoods.getGoodsName() );
out.write("<BR></A>\r\n");
out.write(" <STRONG><FONT color=#ff0000>¥");
out.print(isDiscountGoods.getMemberPrice() );
out.write("</FONT></STRONG>\r\n");
out.write("</DIV>\r\n");
}
out.write("\r\n");
out.write("<!--列表结束 -->\r\n");
out.write(" <DIV class=HackBox></DIV></DIV><!--store end--><!--category start-->\r\n");
out.write("<DIV class=HackBox></DIV>\r\n");
out.write("<!--category end-->\r\n");
out.write("\r\n");
out.write("</DIV>\r\n");
out.write("<!--Left Pannel end--><!--Right Pannel-->\r\n");
out.write("\r\n");
out.write("<DIV id=RightPannel>\r\n");
out.write("<div align=\"right\">\r\n");
out.write("<DIV id=lefttable-top>\r\n");
out.write("<DIV class=tdbg-left></DIV>\r\n");
out.write("<DIV class=text>今日推荐</DIV>\r\n");
out.write("<DIV class=tdbg-right></DIV></DIV>\r\n");
out.write("</div>\r\n");
out.write("<DIV id=Focus>\r\n");
out.write("<DIV id=right-title>\r\n");
out.write("\r\n");
out.write("</DIV>\r\n");
out.write("<DIV id=right-title> </DIV>\r\n");
out.write("\r\n");
out.write("<!--列表开始 -->\r\n");
ArrayList iserfinementList = goodsInfosBean.getGoods_List(8,-1,-1,"是","","","");
for(int i =0;i< iserfinementList.size();i++) {
GoodsBean iserfinementGoods = new GoodsBean();
iserfinementGoods = (GoodsBean)iserfinementList.get(i);
out.write("\r\n");
out.write("<DIV class=Pic align=center>\r\n");
out.write("<a href=\"xiangxi.jsp?goodsID=");
out.print(iserfinementGoods.getGoodsID() );
out.write("\" >\r\n");
out.write("<IMG style=\"WIDTH: 100px; HEIGHT: 100px\" alt=appliance1 hspace=0 src=\"");
out.print(iserfinementGoods.getGoodsUrl() );
out.write("\" border=0></A><BR>\r\n");
out.write("<a href=\"xiangxi.jsp?goodsID=");
out.print(iserfinementGoods.getGoodsID() );
out.write('"');
out.write(' ');
out.write('>');
out.print(iserfinementGoods.getGoodsName() );
out.write("<BR></A>\r\n");
out.write("<STRONG><FONT color=#ff0000>¥");
out.print(iserfinementGoods.getMemberPrice() );
out.write("</FONT></STRONG>\r\n");
out.write("</DIV>\r\n");
}
out.write("\r\n");
out.write("<!--列表结束 -->\r\n");
out.write("</DIV>\r\n");
out.write("<DIV class=HackBox></DIV>\r\n");
out.write("<DIV class=HackBox></DIV>\r\n");
out.write("<!-- topsales start-->\r\n");
out.write("<!-- renqi end--></DIV><!--Right Pannel end--><!--center div start-->\r\n");
out.write("<DIV id=middle>\r\n");
out.write("<DIV id=ChannelTitle>手机</DIV>\r\n");
out.write("<DIV id=UserInfo>您好<SPAN class=UserName></SPAN>,欢迎光临飞梦通信网。飞梦通信将秉承“以客户为中心,以诚信为准则”的宗旨为广大客户提供最优质的商品及服务</DIV>\r\n");
out.write("<TABLE width=380 align=center>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD vAlign=top>\r\n");
out.write(" <DIV id=width>\r\n");
out.write(" <DIV style=\"POSITION: relative\">\r\n");
out.write(" <DIV class=slidecontainer id=slide-imgs>\r\n");
out.write(" <DIV class=slideimages></DIV>\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV id=slidenum></DIV>\r\n");
out.write(" <DIV id=slideContent></DIV></DIV></DIV></TD></TR></TBODY></TABLE>\r\n");
out.write("<!-- special product start-->\r\n");
out.write("<DIV class=HackBox1></DIV>\r\n");
out.write("<DIV class=HackBox1></DIV><SPAN class=text>热销机型</SPAN>\r\n");
out.write("<HR class=channel>\r\n");
out.write("\r\n");
out.write("<DIV class=HackBox1></DIV>\r\n");
out.write("<DIV id=item-list>\r\n");
out.write(" <!--热销机型列表开始 -->\r\n");
ArrayList isHotList = goodsInfosBean.getGoods_List(9,-1,-1,"","是","","");
boolean stast=true;
for(int i =0;i< isHotList.size();i++) {
GoodsBean isHotGoods = new GoodsBean();
isHotGoods = (GoodsBean)isHotList.get(i);
isHotGoods.getGoodsUrl();
if(stast == true)
{
out.print("<DIV class=item>");
stast = false;
out.write("\r\n");
out.write("<DIV class=pic><a href=\"xiangxi.jsp?goodsID=");
out.print(isHotGoods.getGoodsID() );
out.write("\"><IMG alt=\"");
out.print(isHotGoods.getGoodsName() );
out.write("\" src=\"");
out.print(isHotGoods.getGoodsUrl() );
out.write("\"></A></DIV>\r\n");
out.write(" <LI><a href=\"xiangxi.jsp?goodsID=");
out.print(isHotGoods.getGoodsID() );
out.write('"');
out.write('>');
out.print(isHotGoods.getGoodsName() );
out.write("</A>\r\n");
out.write(" <SPAN class=our-price-small>¥");
out.print(isHotGoods.getMemberPrice() );
out.write("</SPAN></LI>\r\n");
}
else {
out.write("\r\n");
out.write("<LI><a href=\"xiangxi.jsp?goodsID=");
out.print(isHotGoods.getGoodsID() );
out.write('"');
out.write('>');
out.print(isHotGoods.getGoodsName() );
out.write("</A>\r\n");
out.write(" <SPAN class=our-price-small>¥");
out.print(isHotGoods.getMemberPrice() );
out.write("</SPAN></LI>\r\n");
}
out.write('\r');
out.write('\n');
if((i+1)>=3 && (i+1)%3==0)
{
out.print("</DIV>");
stast = true;
}
}
out.write("\r\n");
out.write("</div>\r\n");
out.write(" <!--热销机型列表结束 -->\r\n");
out.write("<!-- special product end--><!-- Recommend start-->\r\n");
out.write("<DIV class=HackBox1></DIV><!-- Recommend end--><!-- Special Recommend start-->\r\n");
out.write("<DIV class=HackBox1></DIV><SPAN class=text>手机世界</SPAN>\r\n");
out.write("<DIV id=item-list>\r\n");
out.write("<HR class=channel>\r\n");
out.write("<DIV class=HackBox1></DIV>\r\n");
out.write("<!--1-4部特价精品手机开始 -->\r\n");
out.write("<DIV id=Product>\r\n");
ArrayList isDiIfList = goodsInfosBean.getGoods_List(13,-1,-1,"是","","是","");
for(int i =0;i< isDiIfList.size();i++) {
GoodsBean isDiIfGoods = new GoodsBean();
isDiIfGoods = (GoodsBean)isDiIfList.get(i);
if(i == 0)
{
out.write("\r\n");
out.write(" <DIV class=Name><a href=\"xiangxi.jsp?goodsID=");
out.print(isDiIfGoods.getGoodsID() );
out.write('"');
out.write('>');
out.print(isDiIfGoods.getGoodsName() );
out.write("</A></DIV>\r\n");
out.write(" <DIV class=Pic><a href=\"xiangxi.jsp?goodsID=");
out.print(isDiIfGoods.getGoodsID() );
out.write("\"><IMG alt=\"");
out.print(isDiIfGoods.getGoodsName() );
out.write("\" src=\"");
out.print(isDiIfGoods.getGoodsUrl() );
out.write("\" border=0></A></DIV>\r\n");
out.write(" <DIV class=Text>");
out.print(isDiIfGoods.getGoodsIntroduce() );
out.write("<a\r\n");
out.write(" href=\"xiangxi.jsp?goodsID=");
out.print(isDiIfGoods.getGoodsID() );
out.write("\">更多内容</A></DIV>\r\n");
out.write(" ");
}
out.write('\r');
out.write('\n');
if(i > 0 && i <= 3) {
out.write("\r\n");
out.write(" <DIV class=ThreeLinks>\r\n");
out.write(" <LI><a href=\"xiangxi.jsp?goodsID=");
out.print(isDiIfGoods.getGoodsID() );
out.write('"');
out.write('>');
out.print(isDiIfGoods.getGoodsName() );
out.write("</A>\r\n");
out.write(" <SPAN class=our-price-small>¥");
out.print(isDiIfGoods.getMemberPrice() );
out.write("</SPAN></LI>\r\n");
out.write(" </DIV>\r\n");
}
out.write('\r');
out.write('\n');
if(i == 3) out.print("</DIV>");
out.write('\r');
out.write('\n');
if(i>=4 && (i-1)%3 == 0) out.print("<DIV class=HackBox1></DIV><DIV id=item-list>");
out.write("\r\n");
out.write("<!--4特价精品手机开始 -->\r\n");
if(i >= 4) {
out.write("\r\n");
out.write("<DIV class=item>\r\n");
out.write("<DIV class=pic>\r\n");
out.write(" <a href=\"xiangxi.jsp?goodsID=");
out.print(isDiIfGoods.getGoodsID() );
out.write("\"><IMG alt=\"");
out.print(isDiIfGoods.getGoodsName() );
out.write("\" src=\"");
out.print(isDiIfGoods.getGoodsUrl() );
out.write("\" border=0></A>\r\n");
out.write("</DIV>\r\n");
out.write("<LI><a href=\"xiangxi.jsp?goodsID=");
out.print(isDiIfGoods.getGoodsID() );
out.write('"');
out.write('>');
out.print(isDiIfGoods.getGoodsName() );
out.write("</A>\r\n");
out.write(" <SPAN class=our-price-small>¥");
out.print(isDiIfGoods.getMemberPrice() );
out.write("</SPAN></LI>\r\n");
out.write("</DIV>\r\n");
if(i>=4 && i%3 ==0) out.print("</DIV>");
out.write('\r');
out.write('\n');
}
out.write('\r');
out.write('\n');
}
out.write("\r\n");
out.write("<!--4特价精品手机结束 -->\r\n");
out.write("<!-- Special Recommend end--><!-- Star Recommend start-->\r\n");
out.write("<!-- new product end--></DIV><!--center div end--></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 + -