package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import s2.bean.*;
import java.util.*;
public final class bookInfo_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("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>\r\n");
out.write("bookInfo\r\n");
out.write("</title>\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#ffffff\">\r\n");
out.write("<div>\r\n");
out.write("<div>\r\n");
out.write("<h1 align=\"center\">\r\n");
out.write("你的购物车中有:\r\n");
out.write("</h1>\r\n");
out.write("</div>\r\n");
double total=0;
BookBean book=new BookBean();
//CartItemBean cartItem =new CartItemBean();
//OrderBookNum booknum=new OrderBookNum();
Map cart=(Map)session.getAttribute("cart");
//session.setAttribute("cart",cart);
if(cart==null||cart.size()==0){
out.write("\r\n");
out.write(" <h2 align=\"center\">你还没有购买商品</h2>\r\n");
out.write(" ");
}else{
Set id=cart.keySet();
Object[] v=id.toArray();
for(int i=0;i<v.length;i++){
book=(BookBean)cart.get(v[i]);
out.write("\r\n");
out.write(" <div>\r\n");
out.write("<table border=\"0\" align=\"center\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td>编号</td>\r\n");
out.write(" <td>书名</td>\r\n");
out.write(" <td>类型</td>\r\n");
out.write(" <td>价格</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <form action=\"removebookservlet\" name=\"form1\" method=\"POST\">\r\n");
out.write(" <input type=\"hidden\" name=\"id\" value=\"");
out.print(book.getId());
out.write("\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td>");
out.print(book.getId());
out.write("</td>\r\n");
out.write(" <td>");
out.print(book.getBookName());
out.write("</td>\r\n");
out.write(" <td>");
out.print(book.getBookType());
out.write("</td>\r\n");
out.write(" <td>");
out.print(book.getBookPic());
out.write("<input type=\"submit\" value=\"取消购买\"/></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </form>\r\n");
out.write(" ");
total+=book.getBookPic();
}
out.write("\r\n");
out.write(" <tr>\r\n");
out.write(" <td>你购买商品的总价格是:");
out.print(total);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" ");
//session.setAttribute("total",total);
}
out.write("\r\n");
out.write("\r\n");
out.write("<div>\r\n");
out.write("</div>\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);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
网上书店源码jsp+javabean+servlet
共186个文件
class:31个
java:23个
java~1~:8个
4星 · 超过85%的资源 需积分: 23 381 下载量 128 浏览量
2008-10-08
11:41:43
上传
评论 9
收藏 1.13MB RAR 举报
温馨提示
网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet网上书店源码jsp+javabean+servlet
资源推荐
资源详情
资源评论
收起资源包目录
网上书店源码jsp+javabean+servlet (186个子文件)
bookInfo_jsp.class 5KB
bookshow_jsp.class 5KB
bookInfo_jsp.class 4KB
showbookNumber__jsp.class 4KB
showbookNumber_jsp.class 4KB
bookshow_jsp.class 4KB
showbookNumber__jsp.class 4KB
showbookNumber_jsp.class 4KB
Login_jsp.class 4KB
Login_jsp.class 3KB
Login_jsp.class 3KB
AddToCartServlet.class 2KB
AddToCartServlet.class 2KB
RemoveBookServlet.class 2KB
RemoveBookServlet.class 2KB
BookOperate.class 2KB
BookOperate.class 2KB
BookStorageOperate.class 2KB
BookStorageOperate.class 2KB
LoginServlet.class 2KB
LoginServlet.class 2KB
userInfoOperate.class 2KB
userInfoOperate.class 2KB
ConnectionManage.class 1KB
ConnectionManage.class 1KB
BookBean.class 1KB
BookBean.class 1KB
CartItemBean.class 742B
CartItemBean.class 742B
BookStorage.class 727B
userInfo.class 725B
org.apache.jsp.dep2 7KB
s2.servlet.dep2 6KB
s2.bean.dep2 5KB
org.apache.jsp.WEB_002dINF.dep2 2KB
s2.database.dep2 836B
dx.jar 363KB
msbase.jar 280KB
beandt.jar 185KB
mssqlserver.jar 112KB
dxejb.jar 58KB
msutil.jar 58KB
bookInfo_jsp.java 5KB
bookshow_jsp.java 4KB
bookInfo_jsp.java 4KB
bookInfo_jsp.java 4KB
showbookNumber__jsp.java 3KB
showbookNumber_jsp.java 3KB
bookshow_jsp.java 3KB
Login_jsp.java 3KB
showbookNumber__jsp.java 3KB
showbookNumber_jsp.java 3KB
Login_jsp.java 2KB
Login_jsp.java 2KB
AddToCartServlet.java 2KB
BookOperate.java 2KB
BookStorageOperate.java 1KB
RemoveBookServlet.java 1KB
LoginServlet.java 1KB
userInfoOperate.java 1KB
BookBean.java 769B
ConnectionManage.java 764B
CartItemBean.java 493B
userInfo.java 434B
BookStorage.java 370B
BookStorageOperate.java~10~ 1KB
BookStorageOperate.java~11~ 1KB
BookStorageOperate.java~12~ 1KB
AddToCartServlet.java~18~ 2KB
AddToCartServlet.java~19~ 2KB
RemoveBookServlet.java~1~ 1KB
LoginServlet.java~1~ 1KB
CartServlet.java~1~ 1KB
userInfoOperate.java~1~ 776B
BookOperate.java~1~ 575B
OrderBookNum.java~1~ 223B
CartItemBean.java~1~ 216B
userInfoOperate.java~1~ 91B
AddToCartServlet.java~20~ 2KB
AddToCartServlet.java~21~ 2KB
AddToCartServlet.java~22~ 2KB
AddToCartServlet.java~23~ 2KB
AddToCartServlet.java~24~ 2KB
AddToCartServlet.java~25~ 2KB
AddToCartServlet.java~26~ 2KB
AddToCartServlet.java~27~ 2KB
ConnectionManage.java~27~ 937B
ConnectionManage.java~28~ 941B
ConnectionManage.java~29~ 841B
CartServlet.java~2~ 2KB
RemoveBookServlet.java~2~ 1KB
BookOperate.java~2~ 1016B
LoginServlet.java~2~ 918B
userInfoOperate.java~2~ 850B
CartItemBean.java~2~ 491B
OrderBookNum.java~2~ 355B
ConnectionManage.java~30~ 841B
ConnectionManage.java~31~ 841B
ConnectionManage.java~32~ 844B
ConnectionManage.java~33~ 834B
共 186 条
- 1
- 2
pengpeng409
- 粉丝: 121
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页