- 浏览: 85758 次
-
最近访客 更多访客>>
最新评论
-
ww20042005:
这两步就完成了数据库初始化,也太简单了吧!
mysql初始化数据库 -
biaoming:
我也是debian 64的,也想安装qmail,有什么问题希望 ...
在Debian 64bit Sarge版本上安装QMAIL的痛苦之行
文章列表
查找目录下的所有文件中是否含有某个字符串find .|xargs grep -ri "IBM"查找目录下的所有文件中是否含有某个字符串,并且只打印出文件名find .|xargs grep -ri "IBM" -l 1.正则表达式 (1)正则表达式一般用来描述文本模式的特殊用法,由普通字符(例如字符a-z)以及特殊字符(称为元字符,如/、*、?等)组成。 (2)基本元字符集及其含义 ^ :只匹配行首。 如^a 匹配以a开头的行abc,a2e,a12,aaa,...... $ :只匹配行尾。 如^a 匹配以a结尾的行bc ...
- 2007-08-29 06:12
- 浏览 8801
- 评论(0)
/**
* instanceof 用于检测对象的类型。
* (1)类的对象与类作instance of操作,结果为true
* (2)子类对象与父类作instance of操作,结果为true。
* 因此,所有对象与Object作instance of操作,结果都为true。
* (3)其他情况下,结果都为false。
*/
public class InstanceOf {
// 父类
static class ClassA {
}
// 子类
static class ClassB extends ClassA{
}
public static ...
- 2007-08-23 13:59
- 浏览 1158
- 评论(0)
//ListAllBodyTagExtraInfo.java public class ListAllBodyTagExtraInfo extends TagExtraInfo { public ListAllBodyTagExtraInfo() { } /** * 让JSP引擎确定参数类型 */ public VariableInfo[] getVariableInfo(TagData data) { return new VariableInfo[] { /** * 参数名,类型,是否声明新变量,范围 * 范围取值:AT_BEGIN,AT_END,NESTED(标记有效范围内) * ...
- 2007-08-22 06:50
- 浏览 3204
- 评论(0)
“JDK1.5”的一个重要主题就是通过新增一些特性来简化开发,这些特性包括泛型,for-each 循环,自动装包/拆包,枚举,可变参数, 静态导入 。使用这些特性有助于我们编写更加清晰,精悍,安全的代码。 一. 首先简单介绍 ...
- 2007-08-21 14:40
- 浏览 12843
- 评论(0)
在DB2中从客户端访问服务器端的数据库时,不能直接用connect命令,而必须先建立通信node,再在node的基础上建立数据库连接。在命令行的具体操作如下: ->db2 catalog tcpip node ABC remote serverName server 50000 ->db2 catalog db databaseName at ...
- 2007-08-20 01:10
- 浏览 8510
- 评论(0)
1、检查防火墙是否影响了网络正常的使用。
2、检查wu-ftpd是否已经打开。
3、 运行svscanboot &命令。
4、启动qmail,运行qmailctrl start
- 2007-08-10 15:54
- 浏览 1037
- 评论(0)
1、创建数据库
create database db_name default character set utf8;
2、创建用户并且赋予权限
GRANT ALL PRIVILEGES ON db_name.* TO db_user@localhost IDENTIFIED BY 'password' WITH GRANT OPTION;
- 2007-08-08 16:02
- 浏览 2052
- 评论(1)
1.如何获得当前文件路径 常用: 字符串类型:System.getProperty("user.dir"); 综合: 假设当前的dir是e:\Borland\Together\Architect2006\workspace\logdigger,用户是运行 java -cp .\bin com.dmoving.common.IDGernerator package com.dmoving.common;import java.io.File;public class IDGernerator{ public static void main(String[] args) ...
- 2007-08-06 16:36
- 浏览 2491
- 评论(0)
我的升级计划 1、注意检查ulimit命令2、把主节点和副节点的portal都先升级到6013、Installing WebSphere Application Server Network Deployment on the deployment manager machine4、Installing WebSphere Portal on an unmanaged node (primary)5、Creating the cluster6、Installing and federating secondary nodes7、Adding cluster members
- 2007-08-06 15:12
- 浏览 1163
- 评论(0)
MotivationEnterprise JavaBeans is a server-side component model that targets the specific business domain of online transaction processing (OLTP) applications. OLTP applications generally have the need to store information persistently. The data records or objects for each transaction require unique ...
- 2007-08-06 15:09
- 浏览 2222
- 评论(0)
正则表达式用来指定字符串模式。当你需要定位匹配某种模式的字符串时就可以使用正则表达式。例如,我们下面的一个例程就是在一个HTML文件中通过查找字符串模式<a href="...">来定位所有的超链接。 当然,为了指定一种模式,使用...这种记号是不够精确的。你需要精确地指定什么样的字符排列是一个合法的匹配。当描述某种模式时,你需要使用一种特殊的语法。 这里有一个简单例子。正则表达式[Jj]ava.+匹配下列形式的任何字符串: 首字母是J或j 后续的三个字母是ava 字符串的剩余部分由一个或多个任意字符组成 例如,字符串“javanes ...
- 2007-07-29 08:13
- 浏览 1791
- 评论(0)
写在搭建之前 limations检查列表 You must install and configure WebSphere Portal separately on each node. Except for the temporary state during the initial setup of the cluster, WebSphere Portal is not supported when running on a managed node that is not part of a clustered environment Windows: There is a kno ...
- 2007-07-25 15:29
- 浏览 2330
- 评论(0)
1、添加一个新的domain.
2、使用vadduser命令添加用户,耳不是用vqAdmin来创建。
3、使用DNS管理系统添加MX记录,注意是xxx.com mail.xxx.com,然后在主机记录添加mail.xxx.com的解析。
- 2007-07-18 15:40
- 浏览 963
- 评论(0)
基本类和接口
一、javax.servlet.Servlet接口
servlet抽象集是javax.servlet.Servlet接口,它规定了必须由Servlet类实现由servlet引擎识别和管理的方法集。Servlet接口的基本目标是提供生命期方法init()、service()和destroy()方法。
servlet接口中的方法 void init(ServletConfit config)throws ServletException在servlet被载入后和实施服务前由servlet引擎进行一次性调用。如果init()产生溢出UnavailableException,则se ...
- 2007-07-16 15:37
- 浏览 1630
- 评论(0)
Portlet->PortletAdapter
PortletRequest(接口)
PortletResponse(接口)
PortletSession(接口)
Client
基本上新编写的Portlet都是要继承PortletAdapter。PortletAdapter基本上实现所有的接口和方法。与Portlet不同的是,它几乎复写了所有抽象函数。估计设计这样两个抽象类(Portlet和PortletAdapter)是为了不同层次上的继承来设计的。
PortletRequest,PortletResponse,PortletSession没有什么太多的文章,只要在Portlet ...
- 2007-06-05 09:41
- 浏览 1783
- 评论(0)