SSH有关
文章平均质量分 74
RoadAndDream
这个作者很懒,什么都没留下…
展开
-
Spring中使用JavaMail
1、首先下载JavaMail所需jar包mail.jar2、写java类/** * * @param e此为内部邮件,临时用来保存internetEmail的有关内容 * @param password 邮箱密码 */ public void sen原创 2011-07-05 21:08:22 · 540 阅读 · 0 评论 -
在struts配置文件中使用spring配置的bean
1、首先加入struts2-spring-plugin-2.1.6.jar2、在struts的配置文件中增加一句原创 2011-07-22 13:50:41 · 458 阅读 · 0 评论 -
struts2标签中使用el导致错误
源码: ${user.loginName} ${user.name} ${user.depa原创 2011-07-24 23:06:17 · 694 阅读 · 0 评论 -
hibernate基于注解,在Set属性中控制返回顺序
由于set是无序的,当我们要控制其顺序时候 只需要在集合属性前加上@OrderBy("id"),即可控制返回的顺寻!原创 2011-07-27 21:51:36 · 595 阅读 · 0 评论 -
s2sh中出现乱码
在struts2提交表单时遇到乱码,我在用post时是没有问题的,但在用get提交时却出现乱码。查阅了网上的说法,发现post是按照页面的编码来进行传递的,所以在页面中设置了UTF-8之后就不会有乱码问题。但是get却是以服务器配置为准则。我用的是tomcat,没有配置里面的编码原创 2011-08-01 20:01:42 · 792 阅读 · 0 评论 -
struts2文件下载
action文件:private String downloadFileName;//设置下载的文件名,供struts.xml配置文件中使用public String getDownloadFileName() { return downloadFileName;原创 2011-08-15 18:39:27 · 601 阅读 · 0 评论 -
Invocation of init method failed; nested exception is org.hibernate.PropertyAccessException: Illegal
Invocation of init method failed; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling gette原创 2011-09-09 15:25:28 · 7381 阅读 · 0 评论 -
hibernate中的saveOrUpdate失效
项目中使用的saveOrUpdate失效,查了很多资料,终于有点眉目了。我在项目的web中有配置openSsionInView,导致saveOrUpdate失效,查看了网上的说法,其原因是配置了openSessionInVIew,其为了保证session在使用过程中是同一个,原创 2011-08-23 18:51:12 · 9267 阅读 · 0 评论 -
ssh框架中插入数据到mysql出现乱码
再次列出能找的解决办法:1、连接数据库的时候jdbc.properties: jdbc:mysql://localhost:3306/myproject?useUnicode=true&characterEncoding=utf8applicationContext.xml: jdbc:mysql://localhost:3306/myproject?useUnicode=true&a原创 2011-09-14 19:09:30 · 6214 阅读 · 0 评论