自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(62)
  • 收藏
  • 关注

原创 1.4M

1.4 版本后,如果用代理上网,需要设置代理,才能让grails 和 插件库进行通信 grails add-proxy client --host= "" --port ="809" --user ="" --password ="" grails set-proxy client ...

2011-06-23 20:44:46 150

原创 groovy Ip地址表达式

 // IP Address Regex http://www.regular-expressions.info/examples.htmlcurrentIp = ("http://whatsmyip.us/".toURL().text =~ /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/)[0] println currentIp ...

2011-04-28 18:55:42 672

原创 change the default locale

beans = {4.localeResolver(org.springframework.web.servlet.i18n.SessionLocaleResolver) {5.defaultLocale = Locale.SIMPLIFIED_CHINESE6.java.util.Locale.setDefault(defaultLocale)...

2011-04-13 19:37:00 125

原创 enterprise manage consle

enterprise manage consle 对应的程序是oemapp.bat

2010-08-11 19:26:53 91

原创 groovy

def urls =  ["ip1","ip2"]userid = "user" password = "password"  sfile = "c:/a.txt"ant = new AntBuilder()  urls.each { url ->    ant.scp(file: "${sfile}",  todir: "

2010-08-09 14:40:58 58

原创 Jgraph

Jgraph 遵循 MVC分GraphModelCellViewCellHandleBasicMarqueeHandler 是对 Jgraph 进行控制的基本上每一个View 中都有 handle可以参考 EdgeViewedge -- 边vertex -- 节点port -- 在边的方向通过DefaultCellViewFacto...

2010-07-28 22:01:07 135

原创 pb

如果要在Sql中构造一个空的字符列用Space(n)egselect space(20) F_NAME FROM TABLE

2010-07-28 21:58:57 88

原创 message

原文http://blog.sina.com.cn/s/blog_4ee1cd4201000axh.html 组装错误消息DATA WA_BDCRETURN2 LIKE TABLE OF BDCMSGCOLL WITH HEADER LINE. CALL FUNCTION 'MESSAGE_TEXT_BUILD' ...

2010-06-23 17:20:48 220

Hot-pluggable extensions in Grails – adding and changing your application behavi

http://fbflex.wordpress.com/2010/03/14/hot-pluggable-extensions-in-grails-adding-and-changing-your-application-behaviour-on-the-fly/ Hot-pluggable extensions in Grails – adding and changing yo...

2010-03-15 19:20:00 112

grails + jquery grid plugin

Jquery Grid Json 格式方法http://trirand.com/blog/jqgrid/jqgrid.html def listJson = {    def nparams = [:]    if (params) {      nparams['sort'] = params.sidx      nparams['order'] = para...

2010-03-14 09:52:36 107

grails +zkoss 开发总结

zk component develop 一、)java 类及方法1)先开发一个服务器端的组件,通常是继承 abstractComponent ,如果是html 类型的组件,继承HtmlBaseComponent 就可以了。2)如果需要一个widget需要通知服务器端组件,需要在服务器端的component上注册Client Event http://docs.zkoss....

2010-03-14 09:42:03 181

grails 开发总结

在使用grails 开发的过程,一些总结,随笔  1)grails 连接sybase数据乱码解决办法 url = "jdbc:sybase:Tds:URL:5000/jxcbase?CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.Cp850PureConverter" 2)自定义Sql查询Domain.executeQu...

2010-03-14 09:40:43 99

grails transaction

http://sacharya.com/transactions-in-grails/Transaction & Batch-processing in GrailsFebruary 1, 2009Transaction handling is one of the more complex areas of web development. Anytime a use...

2010-03-14 09:35:15 128

原创 grails +zkoss

基于grails+zkoss应用1)登录窗口2)主窗口 3)已卡片浏览 4)toolbar和右键一致 

2010-01-09 16:58:01 101

原创 sap itab table

http://wiki.sdn.sap.com/wiki/display/stage/Working+with+Internal+tables+.

2009-10-30 11:06:51 128

原创 Configuring NW 7.1 virtual hosts

http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16354

2009-10-22 21:11:38 83

原创 grails 跟踪 sql

http://www.piragua.com/2009/06/17/grails-p6spy-and-sql-profiler/在config文件的logj在那个加入  trace "org.hibernate.SQL", "org.hibernate.type"log4j = { // Example of changing the lo...

2009-05-14 15:53:18 100

原创 取 IP

http://blog.sina.com.cn/s/blog_4758a28b0100bo25.html

2009-05-11 22:38:36 69

grails assgined the id

 使用hibernate 的自定义主键 import org.hibernate.SessionFactoryclass PersonController { SessionFactory sessionFactory def index = { redirect(action:list,params:params) } // the del...

2009-05-09 22:29:33 77

原创 grails 原始sql

import groovy.sql.Sql; class YourController { def dataSource ; ..... def print = { ..... def sql = new Sql(dataSource); List lparams = [startDate, en...

2009-05-09 22:13:01 303

原创 hibernate custom generator

public class CustomIdSequenceGenerator extends org.hibernate.id.SequenceGenerator{ private DecimalFormat format; public void configure(Type type, Properties params, Dialect dialect) { ...

2009-05-09 20:54:00 81

grails 1.1 Gorm 部分新特性提前知道

说明:grails 1.1部分新特性,我只是看 grails 的fisheye 代码链接到的jira 看到的 具:nabble forum 消息:grails 1.1beta1 将会在 11月下旬发布,beta2版本计划 12月底,rc正式版本要到 2009-1月份 1)支持 hibernate 的dynaimc-update 就是只对修改过的数据进行更新,通过下面方法static ma...

2008-10-30 17:21:48 66

grailsflow

grailsflow 具体地址 http://my.jcatalog.com/grailsflow/login 下面说说,grailsflow的流程处理.本人对工作流不熟悉,加之grailsflow文档有限。只是粗略的看了下 grailsflow 的代码,如发现有错误,请指正留言。  grailsflow 分以下几个方面1)流程定义 --就是定义流程要走那些步骤2)流程处理 -...

2008-10-30 16:43:36 79

原创 extjs StatusBar 所在panel 在 south

在把StatusBar放到一个Panel上时,如果这个panel在ViewPort中的South ,需要把 Panel的height 设置成 0 否则在ie7中,会有一个13px的空白。[code="java"] var statusBar = new Ext.Panel({// autoHeight: true, [b] height...

2008-07-11 11:37:54 88

grails 根据数据库自动生产 domains

GenerateDataabase.groovy[code="java"]import java.lang.reflect.Methodimport com.pansoft.extjs.DbunitDatabaseTemplateGeneratorimport java.sql.Connectionimport java.sql.DriverManager/** C...

2008-07-04 17:25:27 162

grails 导出 excel

用 poi 来导出 excel 文件[code="java"]import org.codehaus.groovy.grails.commons.*import org.apache.poi.hssf.usermodel.HSSFWorkbookimport org.apache.poi.hssf.usermodel.HSSFSheetimport org.apache.p...

2008-07-04 17:21:36 171

grails war 包定制

在config.groovy 下面配置grails.war.resources = {stagingDir -> copy(todir: "${stagingDir}/WEB-INF/classes/grails-app/yourDir") { fileset(dir:"grails-app/YourDir") }}

2008-07-04 17:18:04 121

grails datasource 中配置数据源用户名称和密码 加密

在datasource.groovypassword = YourClass.decode(加密后的密码)提前用YourClass.encode(原始密码)获得加密后的密码

2008-07-04 17:16:41 294

grails 自定义 validator

http://www.zorched.net/2008/01/25/build-a-custom-validator-in-grails-with-a-plugin/

2008-07-04 17:05:13 121

grails script 用 gorm 相关特性

原文http://amorproximi.blogspot.com/2008/07/grails-bootstrapping.html择录部分,Ant.property(environment: "env")grailsHome = Ant.antProject.properties."env.GRAILS_HOME"includeTargets grails Sc...

2008-07-04 16:55:28 96

grails services transaction

在 graisl 应用中,默认情况下,services 的事务是系统自动控制的,默认下 是true可以通过以下几种方法改变transaction的状态1) 通过sessonFactorydef session = sessionFactory.getCurrentSession()Transaction tx = session.beginTransaction()...

2008-07-02 15:26:26 92

jsecurity 资料

今天看到一个好消息就是 jsecuirty,将要变成apache的一个工程了。这将推动jsecurity的广泛应用,结束目前不温不火的局面。http://www.jsecurity.org/node/1049

2008-06-18 10:22:05 123

jsecurity 资料

jsecurity 介绍 比acegi 更简单的控件

2008-04-29 14:19:56 74

grails ext 模板

最新的extjs 模板出来了,大家可以到 grails 的plugin中下载。[b]当前版本还没有发布,自己可以svn source 后release-plugin,从本地安装![/b]根据论坛的反馈,基于extjs的插件可能不至一个,现在的这个是基于extjs 纯javascript的。grails-ext-ui可能会继续保持独立发展,不过,这个插件的核心开发人员现在好像停止...

2008-04-13 21:46:15 100

create builder with groovy

http://vladimirvivien.com/blogs/ot/2008/02/creating-simple-builder-with-groovys.html

2008-03-08 11:01:45 86

Grails1.1版本规划

原文链接http://docs.codehaus.org/display/GRAILS/Roadmap1.1 发行计划标题特点 1 。 jpa支持2 。 JSP标签库的支持3 。数据库 Migrations(可能基于Liquibase 或者 GSQL DSL) 4 。 portlet的支持  5 。 Java的内容存储(JCR)的支持   6 。安全API 7。邮件支持 8 。Maven2支持9 ...

2008-03-08 09:26:17 91

extjs 未来规划版本

Ext Road MapOur goals for 2008 are to continue improving the 2.x version line by adding new components and enhancing some of the existing areas of functionality in Ext as shown below. Looking ahea...

2008-02-20 16:48:14 89

grails flex 例子

一个结合 flex-plugin 的例子展示具体操作步骤1)安装 flex plugin2)创建一个domian Product 和service[code="java"]class Product { String name String description String image String category ...

2008-02-10 17:53:54 102

grails ext-ui 最新版本也放到 svn 中了

grails ext-ui 最新版本也放到 svn 中了在dev-app下,不过,还没有完成,有兴趣的可以下载下来看看

2008-01-30 16:38:01 65

jsecurity plugin 更新了

grails 的jescurity plugin 更新了,用到了基本上是 1.0版本的jsecurity新特点就是,不用必须在domain 中加入 accessControll 了,可以直接在自己的filter中加入accessCotroll了具体参考 mail lis 中的http://www.nabble.com/JSecurity%3A-living-on-the...

2008-01-30 16:36:40 72

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除