07 2012 档案

摘要:<meta http-equiv="Refresh" content="5;url=/resCrawl/createPage.jspx"> 阅读全文
posted @ 2012-07-31 09:32 狼里格朗 阅读(106) 评论(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 狼里格朗 阅读(8364) 评论(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 狼里格朗 阅读(5069) 评论(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 狼里格朗 阅读(848) 评论(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 狼里格朗 阅读(291) 评论(0) 推荐(0)