![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
servlet/jsp
chen3531
这个作者很懒,什么都没留下…
展开
-
改变购物车书籍数量
script type="text/javascript">function strip(str){var reg=/(^\s*)|(\s*$)/g;return str.replace(reg,'');}function modify(id,qty){if(strip(qty).length==0){alert('请输入数量');return}原创 2012-10-03 20:06:48 · 895 阅读 · 0 评论 -
点击按钮不刷新页面
$('.list_r_list_button>img').click(function(e){var id=$(this).next().val();$.post('../shopping/cart_list.action',{'book.id':id});$(this).next().next().children('span').html("已添加至购物车").fadeOut(20原创 2012-10-03 20:08:08 · 922 阅读 · 0 评论 -
jSP 获取路径的方法 错误 为验证过 (转载)
一、关于绝对路径和相对路径1.基本概念的理解绝对路径:绝对路径就是你的主页上的文件或目录在硬盘上真正的路径,(URL和物理路径)例如:C:xyz est.txt代表了test.txt文件的绝对路径。http://www.s.com/inx.htm也代表了一个URL绝对路径。相对路径:相对于某个基准目录的路径。包含Web的相对路径(HTML中的相对目录),例如:在Servlet中,"/"代表We转载 2013-06-27 16:19:37 · 580 阅读 · 0 评论 -
TOMCAT 常用配置
1.apr 许多朋友可能在启动tomcat的时候都会看到类似这样的信息: 引用org.apache.catalina.core.AprLifecycleListener init 信息: The Apache Tomcat Native library which allows optimal performance in production environments w转载 2013-08-23 15:09:04 · 752 阅读 · 0 评论