- 博客(4)
- 收藏
- 关注
原创 Struts标签使用
1.1. 页面跳转 可以使用href、page、action三个属性实现struts视图层组件的跳转,三个属性的作用及区别为:① href使用该域名下的相对路径,路径前不需要加“/”,或链接至以http开头其它域名,href="index.jsp"、href="http: //www.baidu.com";② page使用该域名下的绝对路径,路径前需要加“/”;③ action使用该域名下的...
2009-07-14 15:00:11
71
原创 Write operations are not allowed in read-only mode
使用Spring提供的Open Session In View而引起Write operations are not allowed in read-only mode (FlushMode.NEVER) 错误解决:在没有使用Spring提供的Open Session In View情况下,因需要在service(or Dao)层里把session关闭,所以lazy loading 为tr...
2009-06-18 13:54:58
89
原创 web项目的servlet和filter中获取spring上下文
之前一直是在web项目中使用struts2然后通过plugin集成spring,action生成的细节全部由plugin实现了,对于我们是透明的。过几天学校留个作业只能用普通的jsp+servlet做,之前一直是透明的使用spring,对spring的初始化及bean的获取一直没什么概念。这回正好用的上,就研究了一下ContextLoaderListener ContextLoader和Strut...
2009-06-18 11:14:32
158
linux下的tomcat问题
如题,小弟用的是ubuntu8.04jdk1.5+myeclipse5.1+tomcat5.5java环境变量已经配置好了。tomcat单独运行的时候可以运行,但是在myeclipse5.1下面启动tomcat服务就失败了错误如下2008-10-19 14:53:48 org.apache.catalina.startup.Catalina load警告: Can't lo...
2008-10-19 14:55:26
78
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人