- 博客(6)
- 资源 (12)
- 收藏
- 关注
原创 axis2.deployment.DeploymentException
axis2+spring: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class $Proxy4问题所在:service.xml调用的bean,放在了spring的事务管理中
2012-02-02 10:58:17
1947
转载 Hibernate 映射类型与Java 类型对照
integer int or Integer INTEGER long long or java.lang.Long BIGINT short short or java.lang.Short SMALLINT float float or java.lang.F
2008-09-01 13:17:00
303
原创 上传图片生成缩略图
使用jspsmartupload.jar组件,最核心的代码://生成缩略图 File file = new File(filepath); //读入刚才上传的文件 Image src = javax.imageio.ImageIO.read(file); BufferedImage tag = new BufferedImage(width,heigth,B
2008-08-29 16:20:00
345
原创 Struts2取HttpServletRequest和HttpSession
在没有使用Struts2之前,都习惯使用HttpServletRequest和HttpSession对象来操作相关参数,下面介绍一下在Struts2中访问隐藏的HttpServletRequest和HttpSession的两种方法:1.非Ioc方式这种方式主要是利用了com.opensymphony.xwork2.ActionContext类以及ora.apache.struts2.
2008-08-29 16:19:00
517
转载 structs中的action类
ActionMapping类 将特定请求映射到特定Action的相关信息存储在ActionMapping中,ActionServelt将ActionMapping传送到Action类的execute()方法,Action将使用ActionMapping的findForward()方法,此方法返回一个指定名称的ActionForward,这样Action就完成了本地转发。若没有找到具体的Acti
2008-08-29 16:14:00
864
原创 使用getHibernateTemplate()进行分页查询.
private List findXXX(final String hql, final int firstResult, final int maxResults) { return getHibernateTemplate().executeFind(new HibernateCallback() { public Obj
2008-07-08 13:36:00
1719
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人