J2EE项目集成BIRT报表三步走
BIRT报表的配置,总体来说,三步就行了。
1、下载birt,将其解压。
可以到http://download.eclipse.org/birt/downloads/下载最新版的birt。
目前是Latest BIRT Runtime Release Build: 4.2.0。 查看更多...
整合Spring与Hiberante3方法总结
最近做项目,第一次整合spring、hibernate、struts,这里收集点资料,做下参考。学j2ee的都知道,在Spring中整合Hibernate也算是需要掌握的基础知识了,整合的过程比整合Struts相对来说要简单许多,我们要实现的目标是整合,思路就是让spring容器来管理SessionFactory,这样就可以使用Spring的声明式事务了。
在 Spring 中配置 SessionFactory,可以利用Spring提供的 LocalSessionFactoryBean 工厂 Bean, 声明一个使用 XML 映射文件的 SessionFactory 实例。需要为该工厂 Bean 指定 configLocation 属性来加载 Hibernate 配置文件。例如:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation" value="hibernate.cfg.xml"></property>
</bean>
这样就可以在Bean中注入SessionFactory了。 查看更多...
整合Spring与Struts1的三种方法总结
1.使用Spring 的 ActionSupport 。
2.使用Spring 的 DelegatingRequestProcessor 类。
3.全权委托。
无论用那种方法来整合第一步就是要为struts来装载spring的应用环境。 就是在 struts 中加入一个插件。struts-config.xml中
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml"></set-property> </plug-in>
spring 的配置文件被作为参数配置进来。这样可以省略对web.xml 文件中的配置。确保你的applicationContext.xml 在WEB-INF目录下面 查看更多...