jsp购物车代码 /shopping.htmltitle>;shopping stor<;/title>;<;/head>;please select the item that you want to buybook:old man and the seax-box game machinemp3 playerccebook:jsp programmingcd\"the endless lovedvd\"gone with the windcarts.jsphtml;charset=ISO8859_1\"%>;cart.processRequest();you have chosen these items:String[]items=cart.getItems();for(int i=0;i;i+){items[i]%>;}DummyCart.javapackage test;import javax.servlet.http.*;import java.util.Vector;import java.util.Enumeration;public class DummyCart{Vector v=new Vector();String submit=null;String item=null;private void addItem(String name){v.addElement(name);}private void removeItem(String name){v.removeElement(name);}public void setItem(String s){item=s;}public void setSubmit(String s){submit=s;}public String[]getItems(){String[]s=new String[v.size()];v。.
想要几个购物车jsp代码 汗 这LZ也太狠了。
求修改或者给我JSP购物车代码 看看,能不能帮你:pageEncoding=\"gbk\"%>;详细内容List<;BookBean>;list=(List)session.getAttribute(\"list\");int size=list.size();int bookId=Integer.parseInt(request.getParameter(\"bookid\"));BookBean book=null;int i=0;while(i){book=list.get(i);if(bookId=book.getBookId()){session.setAttribute(\"bookToAdd\",book);break;}i+;}font color=\"red\">;书名;()%>;<;/font>;<;/h1>;价格:()%>;描述:()%>;放入购物车\">;<;/form>;<;input type=\"button\"name=\"button2\"value=\"查看购物车\"onClick=\"window.location.href='cart.jsp'\">;