ITeye博客

云吹风散

caoxiping · 共 20 篇文章

html5 不能创建据库

转: http://stackoverflow.com/questions/6676871/android-webview-html5-access-database-problem 问题: i am work at an app which Embed an WebView and display a HTML5 page . when open the html page in android chrome Browser.the database was create normal. but when i run this app , the database can not crea…

2012-06-26 16:12 · 我遇到过的问题 · 评论(0)

解决:The Apache Tomcat Native library which allows optimal performance in producti

在启动Tomcat 6.0时发现第一条信息便是: The Apache Tomcat Native library which allows optimal performance in production environments was not found …… 解决方法: 相关文档: http://tomcat.apache.org/tomcat-6.0-doc/apr.html 去这里 http://tomcat.heanet.ie/native/ 下载最新版本的tcnative-1.dll放到Tomcat的安装目录\Bin下 之后重启Tomcat就OK了。 比如现在我已下载了V1…

2012-06-25 16:24 · 我遇到过的问题 · 评论(0)

EXT 在FormPanel中显示图片的例子

{ columnWidth: .5, layout: 'form', items: [ { xtype : 'box', anchor : '', anchor: '95%', //width:100, //height:100, autoEl : { tag : 'div', style : 'margin:8px 0 8px 105px', children : [ { tag : 'img', qtip : 'You can also have a tooltip on the image', width:100, height:100, src : '/edu'+this.image…

2010-11-18 21:43 · ExtJS · 评论(0)

gridpanel中显示不了json中的嵌套属性,有什么办法解决

例如 返回的json为:{ "limit":10,"start":0"list":[{"id":1,"name":aa,parent:{"id":6,name:"bb"}}]} 在 gid列中怎么显示:parent中的name 用mapping:"parent.name"不行 解决方法 //记录类型 var productType=new Ext.data.Record.create([ {name:"typeid",mapping:"typeid"}, {name:"name",mapping:"name"}, {name:"parent",mapping:"parent"}, {name…

2010-11-09 16:47 · ExtJS · 评论(0)

struts控制流程图

model 1 模型: MODEL 2模型: Struts mvc结构: /* *着重解释:Action为Controller的一部分。只是简单的收集业务方法所需的数据并传递给给业务对象,其主要职责: *1、检验前提条件或声明; *2、调出需要的业务逻辑方法, *3,检测或处理其它错; *4,路由控制到相关视图 */ actionServlet 数据流图:

2010-11-03 10:23 · 评论(0)

MVC模式

model 1 模型:

2010-11-03 10:16 · 评论(0)

Extjs window上有个formpanel面板,当window关闭后再打开时、formpanel上的组件不显示了

把closeAction属性设为close,不要设为hide

2010-11-02 23:45 · ExtJS · 评论(0)

报了这样一个错HTTP Status 404 - There is no Action mapped for namespace / and action na

把struts的配置文件放在src下就行了

2010-10-29 22:39 · 我遇到过的问题 · 评论(0)

JPA与Spring2.5整合时发生不能创建entityManagerFactory的问题解决方法

今天在做jpa与spring整合时,发现个异常... 如下 异常内容: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource :: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No PersistenceProvider specif…

2010-06-21 20:05 · 我遇到过的问题 · 评论(0)

2010-05-10

Html代码 把参数"wmode"设置成transparent这个参数就行了....

2010-05-27 00:00 · 评论(0)

十步让你成为一名优秀的Web开发人员

如果你已经是一名优秀的Web开发人员,那请路过即可。如果你还是一个准备入行或刚入行的菜鸟,那本文倒值得一读。要成为一名优秀的Web开发人员,没有捷径可走,本文就是为那些还在苦苦寻找学习目标的人编写的。 第一步:学好HTML HTML(超文本标记语言)是网页的核心,因此你首先应该学好它,不要害怕,HTML很容易学习的,但也很容易误用,学懂容易要学精还得费点功夫,但学好HTML是成为Web开发人员的基本条件。(注:随着HTML 5规范出炉日期将近,了解HTML 5也将成为Web开发人员的必修课) 学习资源: HTML Dog (http://htmldog.com/) HTML入门指南 (htt…

2010-05-26 23:50 · 评论(0)

Hibernate批处理

在一般情况下,使用hibernate将500000条记录插入到数据库中,通常的做法是: Java代码 Session session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); for(int i =0;i<500000;i++){ Customer custmoer = new Custormer(....); session.save(custmoer); } tran.commit(); session.close(); Session session = sessionF…

2010-05-26 23:42 · 评论(0)

启动tomcat后重新部署报错

信息: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functio…

2010-05-22 13:11 · 我遇到过的问题 · 评论(1)

一些淡忘了的Java日期时间函数

今天舍友问我,JDBC中的stmt.setDate()怎么挺入当前时间,传入参数new java.util.Date()不行,传入 参数new java.sql.Date(),试了一会,还是不行。此时,才发觉,自从用了Hibernate,JPA之后,我连原始的东西都忘记了。这可是一个很可悲的问题,决定来一次小测试! package test; import java.sql.Timestamp; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; pu…

2010-05-19 18:05 · 评论(0)

基于Annotation的Struts2.0+Hibernate3.3+Spring2.5整合开发 (3)

进入我们基于Annotation的Struts2.0+Hibernate3.3+Spring2.5整合开发的最后一个阶段了,这阶段主要为我们的项目引进Struts2的Annotation。相对于带Annotation的Hibernate与带Annotation的Spring整合来说,带Annotation的Struts与带Annotation的Spring整合还是比较容易实现的。 我们先来引进Struts2.0的相关jar包:xwork-2.0.5.jar,struts2-core-2.0.11.2.jar,ognl-2.6.11.jar,commons-logging.jar(这个前面已引…

2010-05-19 17:32 · 评论(0)