`
zgzd13575java
  • 浏览: 13787 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
用MyEclipse+Tomcat开发 首先,确认到哪个jar包出了问题 编译后,从Tomcat你的项目下把jar包全拷出来, 在MyEclipse里你的项目里把添加兼容全移除掉,把拷的jar包放进lib里, 根据是哪个jar包出了问题,删了换个. 就能跑了
jdbc连接各种数据库方式列表 下面罗列了各种数据库使用JDBC连接的方式,可以作为一个手册使用。 1、Oracle8/8i/9i数据库(thin模式) Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); String url="jdbc:oracle:thin:@localhost:1521:orcl"; //orcl为数据库的SID String user="test"; String password="test"; ...
Struts1.2的三种数据有效验证方式 1:交由Action验证 ActionMessages errors=new ActionMessages();  //局部方法变量 ActionMessage error=new ActionMessage("ApplicationResources.properties里面的键"); errors.add("<html:errors proerty="指定的键">",error); this.saveErrors(request, errors); return mappin ...
采用的是Spring2.0的xml,在这里,IOC控制反转,我只探讨autowire的四个比较常用的属性 一:系统默认的autiwire="no" <bean id="show" class="com.zgz008.web.ShowListBean" autowire="no" >   <property name="showService" ...
<!--web.xml处加入--> <!-- OpenSessionmInView过滤器 --> <filter> <filter-name>OpenSessionInViewFilter</filter-name> <filter-class> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter </filter-class> </filter> <filter-mapping> <fil ...
import javax.faces.context.FacesContext; HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse(); HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest(); 下面的说明创建一个新页面! ...
充实博客为主,粗略讲解这是JSH集成(JSF.Spring.Hibernate) 2008-11-22, 开发环境:MyEclipse6.0.1+JDK1.6+Oracle9i 首先添加JSF兼容,选myfaces插件.依照JSF.Spring.Hibernate流程添加兼容,会更容易点,这点会SSH集成的都不会有什么问题 接着,我们看到web.xml 添加Spring控制器(上下文对象) <servlet> <servlet-name>context</servlet-name> <servlet-class> org.spri ...
Global site tag (gtag.js) - Google Analytics