首页 > 代码库 > 淘宝商城jsp部分
淘宝商城jsp部分
淘宝商城jsp部分
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <table width="100%" border="1" class="abc"> <tr> <td colspan="3" bgcolor="#FFFF99"> </td> </tr> <tr bgcolor="#A4C6EC"> <td width="16%" height="127"><img src=http://www.mamicode.com/"images/8.gif" width="179" height="101" />><%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href=http://www.mamicode.com/"">><%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <table width="100%" border="1" align="center" class="abc"> <tr> <td align="center"><img src=http://www.mamicode.com/"images/4.gif" width="50" height="68" />><%@ page language="java" import="java.util.*,com.xf.model.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; //得到GoodsBeanBo完成分页 GoodsBeanBO gbb=new GoodsBeanBO(); //接受pageNow String s_pageNow=(String)request.getAttribute("abc"); int pageNow=1; //默认值 if(s_pageNow != null) { //string->int pageNow=Integer.parseInt(s_pageNow); } ArrayList a1=gbb.getGoodsByPage(6,pageNow); //得到前6个项目,当前页面时第一页 //得到要分页的数目 int pageCount=gbb.getPageCount(6); %> <table width="100%" border="1" class="abc"> <tr> <td height="23" colspan="3"><img src=http://www.mamicode.com/"images/10.gif" width="500" height="45" />><%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href=http://www.mamicode.com/"">><%@ page language="java" import="java.util.*,com.xf.model.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; //得到用户信息session中取 UsersBean ub=(UsersBean)session.getAttribute("userInfo"); //得到购物车信息 ArrayList<GoodsBean> a1=(ArrayList<GoodsBean>)request.getAttribute("mycartInfo"); //得到购物车显示数量 MyCartBO mcb=(MyCartBO)session.getAttribute("mycart"); %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href=http://www.mamicode.com/"">><%@ page language="java" import="java.util.*,com.xf.model.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; //订单的详细信息取出来 OrderInfoBean oifb=(OrderInfoBean)request.getAttribute("detailbean"); %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href=http://www.mamicode.com/"">><%@ page language="java" import="java.util.*,com.xf.model.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; //取出要显示的数据 GoodsBean gb=(GoodsBean)request.getAttribute("goodsInfo"); %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href=http://www.mamicode.com/"">><%@ page language="java" import="java.util.*,com.xf.model.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; //得到传过来购物车的全部信息取出a1 ArrayList<GoodsBean> a1=(ArrayList)request.getAttribute("mycartinfo"); //得到mycartbo得到总价 MyCartBO mcbo=(MyCartBO)session.getAttribute("mycart"); %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href=http://www.mamicode.com/"">><%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <table width="100%" border="0" align="center" class="abc"> <tr> <td align="center" bgcolor="#A4C6EC">合作伙伴:新浪 网易 百度 搜狐有</td> </tr> <tr> <td align="center">地址:中国湖北市政府(有本事你咬我啊) 客服热线:110</td> </tr> <tr> <td align="center">邮箱:xiaofengbly@163.com 邮编:430023</td> </tr> <tr> <td align="center">copyright时尚购物yeah</td> </tr> </table>
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。