上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
摘要: 1.request.getRequestDispatcher()是请求转发,前后页面共享一个request ; response.sendRedirect()是重新定向,前后页面不是一个request。request.getRequestDispather();返回的是一个RequestDispatcher对象。2.RequestDispatcher.forward()是在服务器端运行; HttpServletResponse.sendRedirect()是通过向客户浏览器发送命令来完成. 所以RequestDispatcher.forward()对于浏览器来说是“透明的... 阅读全文
posted @ 2012-08-29 18:18 狼里格朗 阅读(268) 评论(0) 推荐(1) 编辑
摘要: 如果你用myEclipse进行开发的话,运行时可能会出现以下的错误:Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream原因是jar包版本不统一,javaMail与Java EE 5 Libraries/javaee.jar/mail里的包有东西冲突。javamail1.4中包与J2EE5中包接口包引起冲突,导致单元测试经常报如下错误: java.lang.NoClassDefFoundError: com/sun/mail/util/BEnc 阅读全文
posted @ 2012-08-28 18:11 狼里格朗 阅读(2481) 评论(0) 推荐(0) 编辑
摘要: declare @tab table(Class varchar(20),Student varchar(20),Course varchar(50),Grades decimal(7,2));insert into @tab(Class,Student,Course,Grades) values('A班','张三','语文',60);insert into @tab(Class,Student,Course,Grades) values('A班','张三','数学',70);insert into 阅读全文
posted @ 2012-08-22 17:16 狼里格朗 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 网页中对某一资源进行添加或修改,且传过去和接收的参数不出现编码问题,但是却出现乱码?修改方法:jdbc.url=jdbc\:mysql\://192.168.168.13\:3306/portalserverwgy?useUnicode\=true&characterEncoding\=UTF-8去掉 \ 即可;说是不支持。。。,可是却能够获取数据,但是却不能修改和添加。 阅读全文
posted @ 2012-08-09 15:47 狼里格朗 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1. 如何创建嵌套的过滤器//允许你减少集合中的匹配元素的过滤器, //只剩下那些与给定的选择器匹配的部分。在这种情况下, //查询删除了任何没(:not)有(:has) //包含class为“selected”(.selected)的子节点。.filter(":not(:has(.selected))")2. 如何重用元素搜索var allItems = $("div.item"); var keepList = $("div#container1 div.item"); //现在你可以继续使用这些jQuery对象来工作了。例如.. 阅读全文
posted @ 2012-08-01 10:21 狼里格朗 阅读(515) 评论(0) 推荐(1) 编辑
摘要: <meta http-equiv="Refresh" content="5;url=/resCrawl/createPage.jspx"> 阅读全文
posted @ 2012-07-31 09:32 狼里格朗 阅读(99) 评论(0) 推荐(0) 编辑
摘要: org.hibernate.exception.ConstraintViolationException今天遇到这个错误,网上查了下,大多说是有必填字段没有填,搞了很久没搞定,最后发现不是因为这个问题,而是因为字段设置了唯一值,如果表中已存在此记录,再插入则报此错误。Hibernate: insert into membership.t_user (login_id, password, type, status, email, mobile, first_name, last_name, nickname, gender, birthday, country, region, creatio 阅读全文
posted @ 2012-07-12 09:27 狼里格朗 阅读(8256) 评论(0) 推荐(0) 编辑
摘要: freemarker.core.InvalidReferenceException: Expression ctt.contentType is undefined on line 46, column 91 in解决方法: [#if ctt.contentType??][${ctt.contentType.name} - ${ctt.ctgName}] [#else][${ctt.ctgName}][/#if]“??”判断是否为空。还有可能直接设置一下数据库,有可能字段设为空值 阅读全文
posted @ 2012-07-10 18:36 狼里格朗 阅读(4898) 评论(0) 推荐(0) 编辑
摘要: 360浏览器下载还是有点小问题!不过不影响下载 名称那里是乱码,下载后的名字从:http://localhost/webs/download.action?path=uploadfile/ppt/5.中经网统计数据库O.ppt 下的5.中经网统计数据库O.ppt;那位朋友有更好地办法将名称也不是乱码且能下载的,请联系我哟!!! email:weipeng@ssreader.cn 共同进步!!!String str = ServletActionContext.getRequest().getHeader("USER-AGENT").toLowerCase(); if (st 阅读全文
posted @ 2012-07-05 11:51 狼里格朗 阅读(820) 评论(0) 推荐(0) 编辑
摘要: 1、ApplicationContext ac= WebApplicationContextUtils.getRequiredWebApplicationContext(request.getSession() .getServletContext()); BeanFactory bf = (BeanFactory)ac; userPowerService = (UserPowerService)bf.getBean("userPowerService");2、ApplicationContext acx = new FileSystemXmlApplicationCont 阅读全文
posted @ 2012-07-03 15:41 狼里格朗 阅读(282) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页