- 博客(22)
- 问答 (1)
- 收藏
- 关注
原创 avt
package com.bestlinkstudio.gamef.controller; import java.awt.Image; import java.io.File; import com.bestlinkstudio.bsp.user.service.UserManageService; import com.bestlinkstudio.bsp.u...
2011-02-25 11:28:51 290
原创 fenlei
package com.bestlinkstudio.dao2; import java.util.List; public class PaginationStatus { private PaginationList paginationList=null; private int pageIndex=1; private int pageSize=0; pri...
2011-02-25 11:27:48 115
原创 peizhi1
org.hibernate.dialect.MySQLDialect false false thread update com.bestlinkst...
2011-02-25 11:27:01 100
原创 model
package com.bestlinkstudio.gamef.vote.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import jav...
2011-02-25 11:25:58 112
原创 log4j配置
log4j.rootLogger=debug,appender1,appender2 #没有指定特定包,所有包都是用这个级别 log4j.appender.appender1=org.apache.log4j.FileAppender log4j.appender.appender2=org.apache.log4j.ConsoleAppender log4j.appender.app...
2010-09-11 16:00:30 66
原创 spring 配置
org.hibernate.dialect.MySQLDialect true true auto org.hibernate.hql.classic.ClassicQueryTranslatorFactory ...
2010-08-03 10:38:12 73
原创 hibernate@
@Id @GenericGenerator(name="uuidhex",strategy="uuid.hex") @GeneratedValue(generator="uuidhex") @Column(name="_id",length=32) public String getId() { return id; }
2010-08-03 10:23:28 86
原创 mapprint
private String mapToString(Map map){ StringBuffer sb=new StringBuffer(); for(java.util.Map.Entry es:map.entrySet()){ sb.append(es.getKey()+"="+es.getValue()+","); } return sb.toStrin...
2010-06-23 14:05:35 114
原创 Struts2+Servlet
今天在做一个Struts2的项目的时候,要使用到验证码,当时就去配置了web.xml中的servlet标签,结果在页面上不管怎么弄结果就是不显示出来,这个时候突然想到了可能是struts2中的过滤器惹的祸,顺便找了一些文章,最后把问题给解决了,下面我便列出3种解决方案: 1.这种方法很简单就是在struts2的过滤器的url配置成/*.*,当然这种方法其实并不可取! 2.改变下servle...
2010-05-13 16:12:12 86
原创 Map转换成Set
public static void test(){ HashMap hm=new HashMap(); hm.put(1,"zhangsan"); hm.put(2,"lisi"); hm.put(3,"wangwu"); Set s = hm.entrySet(); Iterator i = s....
2010-05-10 17:55:31 155
struts页面跳转解决方案
在struts2中,一个典型的场景时,点一个新闻列表中,有个删除某条新闻的连接,当删除后,会返回这个新闻列表。这里一般是 这样的,比如删除 为了能在删除后,返回到aid所在的新闻分类,可以这样,在delete.action中 把aid先接收,然后request.setAttributes("aid",aid); 然后在struts.xml中,要这样用redirec...
2010-04-13 14:22:50 123
struts2服务器端自动验证
UserAction-register-validation.xml true 用户名不能为空 6 20 用户名字符数应该在${minLength}到${maxLength}之间 true 密码不能为空 6 20 用户名字符数...
2010-03-24 11:41:44 65
HibernateSessionFactory
static { try { sessionFactory = new Configuration().configure().buildSessionFactory(); } catch (Throwable ex) { /* * 需要 捕获Throwable对象, 否则捕获不到 Error及其子类和NoClassDefFoundError类型的错误 ...
2010-03-24 10:08:23 50
web.xml拦截器配置以及struts.xml模板
contextConfigLocation /WEB-INF/applicationContext.xml org.springframework.web.context.ContextLoaderListener struts2 org.apache.struts2.dispatcher.Fil...
2010-03-22 13:16:36 247
SSH2整合要点
关于spring配置文件要点 classpath:cspDataSource.properties org.hibernate.dialect.MySQLDialect tru...
2010-03-21 22:05:43 54
空空如也
关于SQL 拼接的问题 请高手提供想法
2010-06-25
TA创建的收藏夹 TA关注的收藏夹
TA关注的人