📄 xiangxi_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 xiangxi_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>飞梦通信:商品详情</title>\r\n");
out.write("<link href=\"css//detail.css\" type=text/css rel=stylesheet>\r\n");
out.write("<link href=\"css//detail-left.css\" type=text/css rel=stylesheet>\r\n");
out.write("<LINK href=\"css/detail-right.css\" type=text/css rel=stylesheet>\r\n");
out.write("<LINK href=\"css/review.css\" type=text/css rel=stylesheet>\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#ffffff\">\r\n");
out.write("<META content=\"MSHTML 6.00.2900.3157\" name=GENERATOR>\r\n");
int classID =1;
String classff = request.getParameter("classID");
if(classff != null && !classff.equals("")) {
classID = java.lang.Integer.parseInt(classff);
}
else {
classID = 1;
}
int goodsID =1;
String goodsff = request.getParameter("goodsID");
if(goodsff != null && !goodsff.equals("")) {
goodsID = java.lang.Integer.parseInt(goodsff);
}
else {
goodsID = 1;
}
ArrayList goodsList = goodsInfosBean.getGoods_List(-1,goodsID,-1,"","","","");
GoodsBean goodsk = new GoodsBean();
goodsk = (GoodsBean)goodsList.get(0);
out.write("\r\n");
out.write("<BODY>\r\n");
out.write("<DIV id=PageWidth>\r\n");
out.write(" <!--top start-->\r\n");
out.write("\r\n");
out.write(" <!--top end--><!--ads start-->\r\n");
out.write(" <DIV id=StripeAds>\r\n");
out.write(" <div style=\"BACKGROUND-COLOR: #f7ebe7; TEXT-ALIGN: center\">\r\n");
out.write(" <a href=\"\">\r\n");
out.write(" <IMG alt=\"\" hspace=0 src=\"images/ban_zhy_070629_sj_top02.gif\" border=0>\r\n");
out.write(" </A>\r\n");
out.write(" </DIV>\r\n");
out.write(" </DIV>\r\n");
out.write(" <!--ads end--><!-- left start-->\r\n");
out.write(" <DIV id=left>\r\n");
ArrayList isDiscountList = goodsInfosBean.getGoods_List(15,-1,-1,"","","是","");
for(int i =0;i< isDiscountList.size();i++) {
GoodsBean isDiscountGoods = new GoodsBean();
isDiscountGoods = (GoodsBean)isDiscountList.get(i);
if(i ==0){
out.write("\r\n");
out.write("<DIV id=left_td-bg>特价商品</DIV>\r\n");
out.write("<DIV class=HackBox></DIV>\r\n");
out.write("<DIV id=assort>\r\n");
out.write("<UL>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write(" <LI><a href=\"xiangxi.jsp?goodsID=");
out.print(isDiscountGoods.getGoodsID() );
out.write('"');
out.write('>');
out.print(isDiscountGoods.getGoodsName() );
out.write("</A>\r\n");
}
out.write("\r\n");
out.write("</UL>\r\n");
out.write("</DIV>\r\n");
out.write("<DIV class=HackBox></DIV>\r\n");
ArrayList iserfinementList = goodsInfosBean.getGoods_List(15,-1,-1,"是","","","");
for(int i =0;i< iserfinementList.size();i++) {
GoodsBean iserfinementGoods = new GoodsBean();
iserfinementGoods = (GoodsBean)iserfinementList.get(i);
if(i ==0){
out.write("\r\n");
out.write("<DIV id=left_td-bg>今日推荐</DIV>\r\n");
out.write("<DIV class=HackBox></DIV>\r\n");
out.write("<DIV id=topsales>\r\n");
out.write("<UL>");
}
out.write("\r\n");
out.write(" <LI><a href=\"xiangxi.jsp?goodsID=");
out.print(iserfinementGoods.getGoodsID() );
out.write('"');
out.write('>');
out.print(iserfinementGoods.getGoodsName() );
out.write("</A>\r\n");
}
out.write("\r\n");
out.write("</UL>\r\n");
out.write("</DIV>\r\n");
out.write("</DIV>\r\n");
out.write(" <DIV id=content>\r\n");
out.write(" <DIV id=buy-product>\r\n");
out.write("\r\n");
out.write(" </DIV>\r\n");
out.write(" <!-- buy-product end--><!-- product_info start-->\r\n");
out.write(" <TABLE>\r\n");
out.write(" <TBODY>\r\n");
out.write(" <TR>\r\n");
out.write(" <TD>\r\n");
out.write(" <DIV id=product-info>\r\n");
out.write(" <DIV>\r\n");
out.write(" <!-- 手机信息开始-->\r\n");
out.write(" <form action=\"buybook.jsp\" method=\"POST\">\r\n");
out.write(" <input type=\"hidden\" name=\"goodsID\" value=\"");
out.print(goodsk.getGoodsID() );
out.write("\" />\r\n");
out.write(" <DIV class=product-title>");
out.print(goodsk.getGoodsName() );
out.write("</DIV>\r\n");
out.write(" <DIV class=product-author> 品牌:\r\n");
out.write(" <a href=\"list.jsp?classID=");
out.print(goodsk.getClassID() );
out.write('"');
out.write('>');
out.print(goodsk.getGoodsBrand() );
out.write("</A>\r\n");
out.write(" \r\n");
out.write("</DIV>\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV id=product-pic>\r\n");
out.write(" <DIV id=productshowmidpic>\r\n");
out.write(" <a target=\"_blank\" href=\"");
out.print(goodsk.getGoodsUrl() );
out.write("\">\r\n");
out.write(" <IMG height=\"150\" width=\"150\" class=product-pic id=ImageShow alt=\"");
out.print(goodsk.getGoodsName() );
out.write("\" src=\"");
out.print(goodsk.getGoodsUrl() );
out.write("\" border=0>\r\n");
out.write(" </A>\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV id=MorePic>\r\n");
out.write(" <a target=\"_blank\" href=\"");
out.print(goodsk.getGoodsUrl() );
out.write("\">\r\n");
out.write(" <IMG src=\"images/az-see-more.gif\" alt=\"\" border=0>\r\n");
out.write(" </A>\r\n");
out.write(" </DIV>\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV id=info>\r\n");
out.write(" <DIV id=Price>\r\n");
out.write(" 市场价:¥<S>");
out.print(goodsk.getMarketPrice() );
out.write("</S>\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV id=JoyoPrice>\r\n");
out.write(" 会员价: <SPAN class=our-price>");
out.print(goodsk.getMemberPrice() );
out.write("</SPAN>\r\n");
out.write(" <SPAN class=PriceText> </SPAN>\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV id=JoyoPrice>\r\n");
out.write(" <SPAN class=SaleNumberText> 折扣: <SPAN class=SaleNumber>");
out.print((int)Math.ceil((double)(goodsk.getMemberPrice()/goodsk.getMarketPrice())*100) );
out.write("</SPAN> 折 </SPAN>\r\n");
out.write(" </div>\r\n");
out.write(" <DIV id=JoyoPrice>\r\n");
out.write(" <SPAN class=SalePriceText> 节省: <SPAN class=SalePrice>");
out.print(goodsk.getMarketPrice()-goodsk.getMemberPrice() );
out.write("</SPAN> 元</SPAN>\r\n");
out.write(" </div>\r\n");
out.write(" <DIV id=btn-shopping-cart>\r\n");
out.write(" <input type=\"image\" src=\"images/az-add-to-shopping-cart-sm-pri.gif\" />\r\n");
out.write(" </A>\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV>\r\n");
out.write(" <STRONG>用户评分</STRONG>\r\n");
out.write(" \r\n");
out.write(" 暂无用户评分\r\n");
out.write("</DIV>\r\n");
out.write("</form>\r\n");
out.write("<!-- 手机信息结束-->\r\n");
out.write(" </DIV>\r\n");
out.write(" </DIV>\r\n");
out.write(" </TD>\r\n");
out.write(" </TR>\r\n");
out.write(" </TBODY>\r\n");
out.write(" </TABLE>\r\n");
out.write(" <HR>\r\n");
out.write(" <DIV id=title>详细描述</DIV>\r\n");
out.write(" <DIV id=content-text>\r\n");
out.write(" <P>\r\n");
out.write(" ");
out.print(goodsk.getGoodsIntroduce() );
out.write("\r\n");
out.write(" </DIV>\r\n");
out.write(" <HR>\r\n");
out.write(" <BR>\r\n");
out.write(" <DIV id=title>同品牌其它商品</DIV>\r\n");
out.write(" <DIV id=gridview>\r\n");
ArrayList isHotList = goodsInfosBean.getGoods_List(3,-1,goodsk.getClassID(),"","","是","");
for(int i =0;i< isHotList.size();i++) {
GoodsBean isHotGoods = new GoodsBean();
isHotGoods = (GoodsBean)isHotList.get(i);
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(isHotGoods.getGoodsID() );
out.write("\">\r\n");
out.write(" <IMG height=90 src=\"");
out.print(isHotGoods.getGoodsUrl() );
out.write("\" alt=\"");
out.print(isHotGoods.getGoodsName() );
out.write("\" width=70 border=0>\r\n");
out.write(" </A>\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV class=Name>\r\n");
out.write(" <a href=\"xiangxi.jsp?goodsID=");
out.print(isHotGoods.getGoodsID() );
out.write('"');
out.write('>');
out.print(isHotGoods.getGoodsName() );
out.write("</A>\r\n");
out.write(" </DIV>\r\n");
out.write(" <DIV class=Price> 会员价:¥ <SPAN class=our-price-small>");
out.print(isHotGoods.getMemberPrice() );
out.write("</SPAN> 元\r\n");
out.write(" </DIV>\r\n");
out.write("</DIV>\r\n");
}
out.write("\r\n");
out.write("<div id=\"more-content\"><a href=\"list.jsp?classID=");
out.print(goodsk.getClassID() );
out.write("\">[看更多同品牌商品]</a></div>\r\n");
out.write(" </DIV>\r\n");
out.write(" <HR>\r\n");
out.write(" </DIV>\r\n");
out.write("</DIV>\r\n");
out.write("<DIV class=HackBox></DIV>\r\n");
out.write("</DIV>\r\n");
out.write(" ");
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");
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 + -