上一页 1 2 3 4 5 6 ··· 8 下一页

2009年2月8日

The hibernate core class ------ ExportToDB

摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.SchemaExport; ... 阅读全文

posted @ 2009-02-08 01:57 Squall 阅读(164) 评论(0) 推荐(0) 编辑

2009年1月9日

Struts+spring使用随机验证码

摘要: struts-config.xml validation.xml spring config checkAction.java public class CheckAction extends Action { /* * G... 阅读全文

posted @ 2009-01-09 11:04 Squall 阅读(440) 评论(0) 推荐(0) 编辑

2009年1月7日

SSH 异常 解决 方案 总结

摘要: 1.对一个需要提供稳定、高质量的WEB系统而言, 对整个WEB程序的入口、出口的异常处理都需要做封装。 2.Logic、DAO可以根据需要,向上层抛出相应的Exception, 而这些Exception都必须在Action截住,也就是封装起来,向View返回一个合适的信息。 3.发生异常之后,返回到View的信息,可以是给人看得HTML也可以是给JavaScript看的JSON, 所以,... 阅读全文

posted @ 2009-01-07 17:22 Squall 阅读(2910) 评论(1) 推荐(0) 编辑

Struts-Logic 标签库

摘要: Struts-Logic 标签库 此标签库可以分为三种类型:条件、循环、转发/重定向。 一.) 条件类型 logic:empty和logic:notEmpty logic:empty标签判断脚本变量是否为null,是否是一个空的字符串(长度为0),是否是一个空的collection或map(调用isEmpty()方法来判断)。logic:notEmpty标签类似。 ... 阅读全文

posted @ 2009-01-07 14:05 Squall 阅读(787) 评论(0) 推荐(0) 编辑

structs - 标签库(html)

摘要: structs - 标签库(html) Struts提供了五个标签库,即:HTML、Bean、Logic、Template和Nested。 标签库 说明 HTML 标签 ... 阅读全文

posted @ 2009-01-07 14:04 Squall 阅读(953) 评论(0) 推荐(0) 编辑

spring2.0 事务管理以及异常处理之体会

摘要: 开发环境: OS:windows 2003 Server Web Server: jakarta-tomcat-5.0.28 DataBase Server: MS SQL Server 2000 (打了SP3补丁) IDE: Eclipse 3.2.0+MyEclipse 5.0GA 测试案例系统结构: web层Service层DAO层 web层使用struts 1.1,DA... 阅读全文

posted @ 2009-01-07 10:44 Squall 阅读(2098) 评论(1) 推荐(0) 编辑

2009年1月5日

Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

摘要: 错误如下: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from resource [/WEB-INF/applicationContext.xml] of ServletContext; nested exception is java.io.Fi... 阅读全文

posted @ 2009-01-05 09:37 Squall 阅读(11846) 评论(1) 推荐(0) 编辑

myeclipse tomcat 部署错误

摘要: myeclipse tomcat 部署错误: Deployment failure on Tomcat 6.x. Could not copy all resources to C:\tomcat6\webapps\OAPMS. If a file is locked, you can wait until the lock times out to redeploy, or stop the s... 阅读全文

posted @ 2009-01-05 09:22 Squall 阅读(2378) 评论(0) 推荐(0) 编辑

2008年12月18日

ASP 通过正则提取信息内容种的图片

摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->str="" response.write savepic(str) function savepic(str) content=str&"" regstr="src\=.+?\.(gif|... 阅读全文

posted @ 2008-12-18 15:41 Squall 阅读(284) 评论(0) 推荐(0) 编辑

div+css 绝对定位和相对定位

摘要: div+css绝对定位和相对定位 很多朋友问过我absolute与relative怎么区分,怎么用?我们都知道absolute是绝对定位,relative是相对定位,但是这个绝对与相对是什么意思呢?绝对是什么地方的绝对,相对又是相对于什么地方而言的呢?那他们又有什么样的特性,... 阅读全文

posted @ 2008-12-18 09:21 Squall 阅读(2418) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 8 下一页

导航