package org.apache.jsp.purview;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class home_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_var_value_scope_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_items;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_choose;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_when_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_otherwise;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_set_var_value_scope_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_forEach_var_items = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_choose = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_when_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_otherwise = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_set_var_value_scope_nobody.release();
_jspx_tagPool_c_forEach_var_items.release();
_jspx_tagPool_c_choose.release();
_jspx_tagPool_c_when_test.release();
_jspx_tagPool_c_otherwise.release();
}
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\r\n\r\n");
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_0 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_scope_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_set_0.setPageContext(_jspx_page_context);
_jspx_th_c_set_0.setParent(null);
_jspx_th_c_set_0.setVar("contextPath");
_jspx_th_c_set_0.setValue( request.getContextPath() );
_jspx_th_c_set_0.setScope("application");
int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
_jspx_tagPool_c_set_var_value_scope_nobody.reuse(_jspx_th_c_set_0);
out.write('\r');
out.write('\n');
com.lucky.dao.ProductDao dao = null;
synchronized (_jspx_page_context) {
dao = (com.lucky.dao.ProductDao) _jspx_page_context.getAttribute("dao", PageContext.PAGE_SCOPE);
if (dao == null){
dao = new com.lucky.dao.ProductDao();
_jspx_page_context.setAttribute("dao", dao, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_1 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_scope_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_set_1.setPageContext(_jspx_page_context);
_jspx_th_c_set_1.setParent(null);
_jspx_th_c_set_1.setVar("allProduct");
_jspx_th_c_set_1.setValue( dao.getAllProducts() );
_jspx_th_c_set_1.setScope("page");
int _jspx_eval_c_set_1 = _jspx_th_c_set_1.doStartTag();
if (_jspx_th_c_set_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
_jspx_tagPool_c_set_var_value_scope_nobody.reuse(_jspx_th_c_set_1);
out.write("\r\n\r\n<html>\r\n<head>\r\n<script type=\"text/JavaScript\">\r\n//[放入购物车]按钮的点击事件处理函数\r\nfunction onButtonClickAction(productId) {\r\n document.formProduct.chooseId.value = productId; //设置隐藏表单域的值\r\n document.formProduct.submit(); //表单提交\r\n}\r\n</script>\r\n<title>网上商城——主页</title>\r\n</head>\r\n\r\n<body>\r\n当前在线用户");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${applicationScope.count}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("人。<br />\r\n欢迎<b>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${sessionScope.loginClient.name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write('[');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${sessionScope.loginClient.loginName}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("]</b>来到网上商城!<br />\r\n您当前所在位置:商城主页<br />\r\n<h1>商城主页</h1>\r\n<br /><br />\r\n<h3>商品列表</h3>\r\n<form name=\"formProduct\" action=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${applicationScope.contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("/purview/shoppingcart\" method=\"POST\">\r\n<table border=\"1\" width=\"50%\">\r\n <tr>\r\n <th>商品名称</th><th>类型</th><th>单位</th><th>价格</th><th>购物车</th>\r\n </tr>\r\n ");
if (_jspx_meth_c_forEach_0(_jspx_page_context))
return;
out.write("\r\n</table>\r\n<input type=\"hidden\" name=\"chooseId\" />\r\n</form>\r\n<br />\r\n<hr />\r\n<br />\r\n<h3>您购物车中的商品</h3>\r\n");
if (_jspx_meth_c_choose_0(_jspx_page_context))
return;
out.write("\r\n</body>\r\n</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);
}
}
private boolean _jspx_meth_c_forEach_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
_jspx_th_c_forEach_0.setParent(null);
_jspx_th_c_forEach_0.setVar("product");
_jspx_th_c_forEach_0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${pageScope.allProduct}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
没有合适的资源?快使用搜索试试~ 我知道了~
购物车完整版(jsp)
共77个文件
class:27个
java:15个
dep2:8个
5星 · 超过95%的资源 需积分: 10 58 下载量 144 浏览量
2007-12-14
21:24:36
上传
评论 6
收藏 796KB RAR 举报
温馨提示
jsp做购物车。。。。附带数据库
资源推荐
资源详情
资源评论
收起资源包目录
mvc.rar (77个子文件)
mvc
mvc.jpx 9KB
Tomcat
conf
server8080.xml 933B
work
lucky
org
apache
jsp
login_jsp.class 7KB
login_jsp.java 6KB
tldCache.ser 44B
webapps
mvc.jpx.local~ 5KB
Servlet.library 227B
test
com
lucky
test
db
tab_user.sql 2KB
lucky
login.jsp 1KB
WEB-INF
web.xml 2KB
lib
jstl.jar 20KB
msbase.jar 280KB
mssqlserver.jar 66KB
msutil.jar 58KB
standard.jar 384KB
classes
com
lucky
bean
ProductBean.class 2KB
BaseBean.class 307B
ClientBean.class 2KB
dao
ProductDao.class 3KB
ClientDao.class 3KB
AbstractDao.class 286B
db
DatabaseUtil.class 3KB
listener
OnlineCountListener.class 2KB
servlet
ShoppingCartServlet.class 3KB
CheckLoginServlet.class 2KB
filter
LimitFilter.class 2KB
EncodingFilter.class 2KB
purview
home.jsp 2KB
bak
com
lucky
bean
dao
ClientDao.java~1~ 2KB
test
db
DatabaseUtil.java~2~ 4KB
DatabaseUtil.java~1~ 4KB
listener
servlet
filter
tag
lucky
WEB-INF
web.xml~4~ 2KB
web.xml~1~ 2KB
web.xml~3~ 2KB
web.xml~2~ 2KB
purview
home.jsp~1~ 2KB
src
com
lucky
bean
ClientBean.jbx 367B
ProductBean.jbx 421B
ProductBean.java 1KB
BaseBean.java 208B
ClientBean.java 1KB
dao
ProductDao.java 2KB
ClientDao.java 2KB
AbstractDao.java 160B
db
DatabaseUtil.java 4KB
listener
OnlineCountListener.java 2KB
servlet
CheckLoginServlet.java 2KB
ShoppingCartServlet.java 2KB
filter
LimitFilter.java 2KB
EncodingFilter.java 2KB
tag
classes
Generated Source
.jsp
lucky
org
apache
jsp
purview
home_jsp.java 17KB
login_jsp.java 5KB
cache files
mvc.index 9KB
jsp cache
lucky
org
apache
jsp
purview
home_jsp.class 13KB
login_jsp.class 6KB
package cache
org.apache.jsp.purview.dep2 6KB
org.apache.jsp.dep2 4KB
com
lucky
bean
ProductBean.class 2KB
BaseBean.class 307B
ClientBean.class 2KB
dao
ProductDao.class 3KB
ClientDao.class 3KB
AbstractDao.class 286B
db
DatabaseUtil.class 3KB
listener
OnlineCountListener.class 2KB
servlet
ShoppingCartServlet.class 3KB
CheckLoginServlet.class 2KB
filter
LimitFilter.class 2KB
EncodingFilter.class 2KB
package cache
com.lucky.servlet.dep2 5KB
com.lucky.dao.dep2 5KB
com.lucky.bean.dep2 4KB
com.lucky.servlet.filter.dep2 4KB
com.lucky.db.dep2 2KB
com.lucky.listener.dep2 1KB
mvc.jpx.local 5KB
warpackage.bat 58B
共 77 条
- 1
资源评论
- mxw4655083562014-04-15我调试了一下。真的挺好的,很容易上手,比较基础。。。
- hhj3598913502015-04-25可以使用,不错,感谢楼主分享。。。
auto2
- 粉丝: 7
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 常用工具集参考用于图像等数据处理
- 音乐展示网页、基于Stenography的图像数字水印添加与提取,以及基于颜色矩和Tamura算法的图像相似度评估算法py源码
- 基于EmguCV(OpenCV .net封装),图像数字水印加解密算法的实现,其中包含最低有效位算法,离散傅里叶变换算法+文档书
- 基于matlab+DWT的图像水印项目,数字水印+源代码+文档说明+图片+报告pdf
- (优秀毕业设计)基于python实现的数字图像可视化水印系统的设计与实现,多种数字算法实现+源代码+文档说明+理论演示pdf
- 基于DWT-DCT-SVD和deflate压缩的数字水印方法python源码+Gui界面+演示视频(高分毕业设计)
- 基于matlab实现DWT、DCT、SVD算法数字图像水印可视化系统+GUI界面+文档说明+详细注释(高分毕业设计)
- NCIAE-Data-Structure大一大二笔记
- 学习wireshark笔记
- digital-image-数据可视化笔记
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功