自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 INFO : Probably not an issue: org.jdom.Document is not available so the jdom con

启动TOMCAT时,控制台提示以下信息INFO : Probably not an issue: org.jdom.Document is not available so the jdom converter will not load. This is only an problem if you wanted to use it但操作没有问题了... ...在网上搜了一下解决...

2009-09-15 12:00:49 620

原创 prototype.js中Function.prototype.bind方法浅解

初次看到prototype.js框架里面的Function.prototype.bind = function() {}和class.create()方法实在有些不理解,因为通常mickey在使用jquery的时候并没多想这些强大的库里面为我们提供的那些及其方便使用的原型方法是如何实现的。所以在看到prototype.js此类的框架的部分源码后,对里面一些基础的类扩展原型方法的巧妙使用理解起来吃力...

2009-07-06 11:00:40 194

原创 java.lang.NoClassDefFoundError:javax/el/ExpressionFactory

用的myeclipse6.5,把工程发布到tomcat5.5启动的时候报错,把myeclipse下的4个jar包放到tomcat common/lib下**\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\EE_5javaee.jar jsf-api...

2009-07-03 16:20:05 146

原创 linux 安装ssh

确定系统安装了 GCC 编译器!一、安装 Zlib1、下载最新版本 ZlibZlib 官方网站:http://www.zlib.net/# cd /usr/local/src# wget -c http://www.zlib.net/zlib-1.2.3.tar.gz2、编译安装 Zlib# tar xzvf zlib-1.2.3.tar.gz# cd ...

2009-03-24 13:37:16 156

原创 备 忘

如果 configure 时提示 PAM 有错误,那一般是因为系统中没有安装 pam-devel RPM 包,找到安装光盘,安装 pam-devel 就可以解决啦sudo apt-get install libc6-dev安装lrzszsudo apt-get install lrzsz卸载sudo apt-get remove vsftpd...

2009-03-24 13:27:56 98

定时操作

在Oracle10g里面,已经不赞成使用DBMS_JOB,推荐使用DBMS_SCHEDULER,它的健壮为调度提供更好的规划和结构。下面我只简单写一个例子。begin DBMS_SCHEDULER.CREATE_PROGRAM( program_name => 'guozhw', program_type => 'STORED_PROCEDURE', p...

2009-02-10 15:58:49 144

ubuntu备份更新

安装的更新以及软件都存放在,备份这些*.deb就可以了。需要的时候,就可以将它们放到/var/cache/apt/archives/目录下,然后更新sudo apt-get update

2009-01-31 22:06:44 102

linux下JDK的bin安装方法

1.删除原有的JDK 首先运行;# alternatives –remove java /usr/share/java/libgcj-java-placeholder.sh# alternatives --remove javac /usr/share/java/libgcj-javac-placeholder.sh# alternatives --remove jar /usr/bin/fast...

2009-01-31 22:01:57 141

ubuntu8.*的root的系统默认密码

ubuntu的 root密码是随机的,每次开机登陆root的密码都是不一样的。 用当前登陆的帐户在终端输入命令:sudo passwd 系统提示: 密码: (输入当前登陆的帐户的密码,系统再提示:) 输入新密码: 确认新密码: 输入新密码后就是root的密码,就可以用root用户登陆了! ...

2009-01-31 21:58:34 161

原创 使用Acegi进行身份认证(二)

在《使用Acegi保护您的应用(之一)》的文章中,我们讲解了如何将Acegi集成到基于Spring的Web应用中,并介绍了基于Acegi身份认证管理的基本处理。在这篇文章里,我们将继续Acegi身份认证的高级部分。此外,我们还将讲解实施高级身份认证的具体做法。[b]密码加密的问题[/b]不管是使用InMemoryDaoImpl还是JdbcDaoImpl,它们的工作是根据待认证用户名获取Us...

2009-01-09 15:10:34 232

原创 使用Acegi进行身份认证(一)

Acegi是专门为Spring Web应用提供安全保护的开源框架,它通过配置的方式就可以对业已存在的应用实施安全控制。在Acegi实施安全控制之前,必须获取操作者的身份,并进一步获知用户的权限,这样Acegi才可能对应用资源实施安全控制。在本文中,我们将介绍Acegi如何对操作者进行身份认证的内容。 [b]将Acegi集成到Web应用程序中 [/b]Acegi通过多个不同用途的Servle...

2009-01-09 14:09:23 297

poi读excel

[code="java"]import java.awt.Color;import java.awt.Font;import java.awt.RenderingHints;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import ja...

2009-01-04 14:23:40 119

poi生成excel

poi-3.2-FINAL[code="java"]import java.awt.Color;import java.awt.Font;import java.awt.RenderingHints;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;imp...

2009-01-04 09:45:06 123

原创 tooltip

代码来自js权威指南第五版。Geometry.js[code="js"]var Geometry = {};if (window.screenLeft) { Geometry.getWindowX = function() { return window.screenLeft; }; Geometry.getWindowY = functi...

2008-12-30 12:42:07 129

dwr的util.js使用-addOptions

[b]dwr.util.addOptions()[/b]这个方法可以给ol, ul,select添加元素。如果是ol, ul就添加li如果是select就添加option。数据来源可以是字符串数组,对象数组,map.[b]1.字符串数组[/b]如果数据是字符串数组dwr.util.addOptions(id, [ "one", "two", "three" ],[options...

2008-12-26 16:14:26 212

response.setContentType 对应的文件类型

image/bmp--BMPimage/gif--GIF image/jpeg--JPEG image/tiff--TIFFimage/x-dcx--DCXimage/x-pcx--PCX text/html--HTML text/plain--TXTtext/xml--XMLapplication/afp--AFP application/pdf--PDF application/rtf-...

2008-12-26 10:40:36 869

在ie中打开或下载

在ie中打开或下载文件在jsp加入下面这句<%@ page contentType="application/msword;charset=utf8" %>后台代码这样写response.setHeader("Content-disposition","inline; filename=文件名.doc"); //线上浏览方式,用IE打开response.setHeader("Con...

2008-12-26 10:36:24 119

dwr中使用annotation

@RemoteProxy对应dwr.xml中的.如要使用spring这样写@RemoteProxy(name = "js的名字", creator = SpringCreator.class, creatorParams = {@Param(name = "beanName", value = "spring中bean的id")})@RemoteMethod对应dwr.xml中的@...

2008-12-26 10:29:52 108

dhtmlxgrid 2.0 标准版 dwr实现增、删、改、查

dhtmlxgrid 2.0支持四种类型的数据: - xml;- csv;- json;- javascript array.下面只介绍xml,json类型的数据。一、xml类型dhtmlxgrid要求的xml格式如下: string value string value ...

2008-12-25 15:56:44 328

dwr(2) 配置文件

dwr.xml文件的结构如下:<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN" "http://www.getahead.ltd.uk/dwr/dwr10.dtd"><dwr> <!-- init is only needed if y...

2008-12-25 13:17:54 212

dwr应用(1)

      DWR是一个Java开源库,帮助你实现Ajax网站。你可以在在Javascript代码中调用Web服务器上的Java程序,像在Java代码就在浏览器中一样。      DWR主要包括两部分:          1.在服务器上运行的Servlet来处理请求并把结果返回浏览器。           2.运行在浏览器上的Javascript,可以发送请求,并动态改变页面。      D...

2008-12-25 10:13:22 92

struts-config.xml 元素顺序

display-name?,description?,data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*

2008-12-24 17:43:56 65

web.xml 元素顺序

icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource...

2008-12-24 17:42:57 98

ora-0131:Insufficient privileges

用pl/sql developer 调试存储过程报错note:debugging requires the debug connect session system privilege. 原因是用户权限不够,使用以下命令授予权限:GRANT debug any procedure, debug connect session TO username...

2008-12-20 18:50:44 283

原创 Eclipse is running in a JRE, but a JDK is required

Eclipse is running in a JRE, but a JDK is required Some Maven plugins may not work when importing projects or updating source folders.把快捷方式的目标位置后面加上  -vm D:\Java\jdk1.5.0_10\bin\javaw ...

2008-12-12 16:35:26 65

原创 李嘉诚14句经典成功格言

1、在20岁前,事业上的成果百分之百靠双手勤劳换来;20岁至30岁之前,事业已有些小基础,那10年的成功,10%靠运气好,90%仍是由勤劳得来;之后,机会的比例也渐渐提高;到现在,运气已差不多要占三至四成了。  不敢说一定没有命运,但假如一件事在天时、地利、人和等方面皆相背时,那肯定不会成功。若我们贸然去做,失败时便埋怨命运,这是不对的。  2、与新老朋友相交时,都要诚实可靠...

2008-11-30 14:34:23 109

原创 mysql建外键错误Cannot add or update a child row

把要建外键的表清空

2008-11-10 21:52:54 115

原创 hibernate源码 3.2.5

压缩包是一个eclipse工程,导入即可。要求jdk1.5.

2008-11-07 09:38:49 66

原创 hibernate源码org.hibernate.hql.antlr文件夹空的解决办法

下载后的hibernate源码文件中org.hibernate.hql.antlr是空的,要自己编译。A special package for ANTLR-generated parser classes.NOTE: The classes in this package are generated from the ANTLR grammar files, do not regis...

2008-11-06 10:35:42 139

空空如也

空空如也

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

TA关注的人

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