自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(37)
  • 资源 (19)
  • 收藏
  • 关注

原创 PKCS5Padding 和 PKCS7Padding

起源原因   Java的默认crypto类,AES算法使用日前在工作中遇到AES算法服务器端和iOS端进行联调,发现加密结果不能一致。最后终于解决,记录一下以备将来查询。If the original data is an integer multiple of N bytes, t

2016-09-07 20:21:12 19392 4

原创 Git入门介绍

相信数人和我一样对Git是久有耳闻,了解一些,但却没有实际的操作经验https://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93%E7%9A%84%E4%BD%BF%E7%94%A8

2016-05-28 17:25:50 702

原创 再次理解CAP

从单机RDMS到分布式数据库从前...大家都在使用单机,单节点的数据库。例如:sql server, mysql , oracle...我们如果想要提升整体性能,我们必须纵向提高单节点的能力。这虽然简单,但是很贵,而且很容易就会抵达上限。后来...大家想出了各种办法:主从复制, 分表,分库,sharding分布式系统中的CAP理论如火如荼,每个人都在说。是否真的理解

2016-04-25 16:15:56 9298

转载 NoSQL 简介

原文地址:http://www.runoob.com/mongodb/nosql.htmlNoSQL 简介NoSQL(NoSQL = Not Only SQL ),意即"不仅仅是SQL"。在现代的计算系统上每天网络上都会产生庞大的数据量。这些数据有很大一部分是由关系数据库管理系统(RDMBSs)来处理。 1970年 E.F.Codd's提出的关系模型

2016-04-21 11:03:58 466

原创 mysql的timestamp,unix_time和时区问题

今日,多次在不同时区的mysql数据库的timestamp字段上遇到各种问题,搅来搅去,越搅越乱,故此写下此文记录,理清思路。首先澄清一个概念:所有的linux系统文件系统底层存储的都是UTC时间,也就是说都是自1970年0时0分0秒以来的UTC标准时间的秒数。无论系统配置是什么时区,显示如何不同,底层存储都是一致的。如何得到UTC系统时间?

2013-07-22 19:00:12 23457

原创 分布式存储一致性理论和算法介绍

在多IDC的环境下,一个很现实的问题就是如何进行数据同步,如何保证数据的完整性?分布式存储业界已经有很多经验,甚至有了理论依据来描述这些问题。通过对分布式存储相关理论,算法,方案进行了一段时间的浅尝辄止的研究,对整体概念有了一个初步的认识,梳理出来记录下来形成此文。本文试图从实际角度出发,对分布式存储的算法,理论进行一些简单的介绍,并根据现实的需求最终选择其中一种作为将来演进系统依赖的方案

2013-04-02 17:35:29 2252

原创 SugarCRM如何集成CAS

<br /> 公司需要使用SugarCRM且与其他系统集成,但是又需要使用cas单点登录。所以必须修改SugarCRM源代码,经过多次尝试,找到相对比较靠谱的方法,记录如下:修改config.php在最后面加上如下这句<br />'authenticationClass' => 'CASAuthenticate',这句话的意思应该是让自定义的CASAuthenticate类全面接管授权工作修改index.php增加如下语句:因为我下载的是6.1.2所以无需增加require_once('modules/Us

2011-04-28 15:32:00 1919

原创 apache多域名转发至tomcat&https设置&虚拟主机的设置

<br /><br />最近忙于工作中的apache+tomcat的多域名转发,一个看起来非常简单的工作,实际做起来并没有想象中那么容易。为了将来的工作方便,必须先记录下来。<br />整个流程分成以下几个要点<br />1.apache如何转发多域名至tomcat<br />2.https如何转发<br />3.无应用名称如何设置<br />4.如何远程部署多域名的应用<br />5.如何拒绝其他域名访问<br /> <br />一共有三个应用<br />app.xxx.com,<br />dl.xxx.

2011-04-20 16:18:00 10504

转载 Web Service描述语言 WSDL 详解

 为什么使用WSDL? WSDL文档结构 WSDL文件示例 Namespaces SOAP消息 XML schema运用于WSDL的类型和消息中 XML schema运用之complex类型 XML schema运用之数组 <portType>和<operation>元素 <binding>和<operation>元素 文档风格绑定 <service> 和<port>元素 总结

2011-04-20 16:04:00 1353

原创 tomcat catalina.out日志按日切割

我一般说把catalina.out搞成日滚的模式,嗯嗯 来自dailyrolling让我们看看如何日滚.两种方式:一:用linux的cronolog将日志按照时间分割找到tomcat/bin/catalina.sh 中org.apache.catalina.startup.Bootstrap "$@" start /         >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &修改为org.apache.catalina.startup.Bootstrap "$@

2010-11-30 12:09:00 40442 3

原创 Maven使用点滴

maven如何使用不规范的目录结构|如何在打包时忽略某目录的文件|如何增加第二个src源码路径|

2010-11-23 12:07:00 11960

转载 [ZT]股市经验谈--入门篇

<br />股市经验谈--入门篇 <br /><br />话说离我进入股市已经还差2天就整整十个月了.在这一年一度的节日里,我不由得要总结一下过去所走过的路. <br /><br />股市真的很血腥,很残忍,尸横遍野,万里哀号. 只可惜大部分抬脚迈入股市里面的人都没有意识到,都以为那里是鲜花遍地不用费力就能发财的好地方,我就十分不理解,为什么人们平时对于他辛辛苦苦分分积攒的血汗钱那么精打细算的珍惜和在乎,而进入股市里却好像忘记了一切一样盲目冲动自大鲁莽.看到无知的人们贪婪和愚昧的样子,我只能惋惜的摇摇头.就

2010-11-17 17:46:00 1208

转载 [ZT]Maven常用命令

 Maven常用命令 关键字: maven常用命令 1、常用命令mvn compile 编译主程序源代码,不会编译test目录的源代码。第一次运行时,会下载相关的依赖包,可能会比较费时。mvn test-compile 编译测试代码,compile之后会生成target文件夹,主程序编译在classes下面,测试程序放在test-classes下。mvn test运行应用程序中的单

2009-11-13 18:24:00 6975 1

原创 如何在Outlook中使用宏发送邮件,并且使用已有签名?

 一、如何使用VBA发送邮件?在工作中有一些邮件是常常需要发送,但是模式却是比较类似。例如:日报邮件收件人,主题,签名基本一致,除了主题中的日期需要更改之外其他都可以采用一个模板来实现。找了半天,不知道模板如何实现。干脆写一个VBA函数来完成这个任务。    实践发现outlook中是不支持宏的录制的,这样就带来了一些麻烦。   在网上搜来搜去,找到了VBA编程

2009-11-05 11:23:00 10250 2

原创 Exception in thread "main" java.lang.NoClassDefFoundError:错误 如何解决?

在命令行方式下执行某一个class文件,出现如下错误:Exception in thread "main" java.lang.NoClassDefFoundError: NqGenKey/classCaused by: java.lang.ClassNotFoundException: NqGenKey.class        at java.net.URLClassLoader$

2009-10-28 11:44:00 2570

原创 WORD中编号问题的解决

最近在word中编辑文档时,发现了一种很奇怪的现象。例如:文章目录结构如下1.概述  1.1 序言  1.2 词汇  1.3 参考文档2.系统分析   1.4 架构图   1.5 各部分说明3.解决方案 发现没有,本该是2.1,2.2的编号变成了1.4,1.5 接着上一段继续编号了 百思不得其解之下,对word的多级编号的设置进行反复试验,发现都

2009-10-27 16:11:00 5590

转载 [ZT]基于Spring实现远程服务编程

一.引言从根本上分析,Remoting实际上是一种企业分布式计算的组件。在同一服务器(Java虚拟机)内进行调用的服务(或类)并不需要把自己暴露为一种远程服务;但是,如果你需要与一个外部程序(在不同的服务器上或在一个不同的组织中)进行通讯的话,那么,必须把它实现为一个远程服务。Spring 框架为把业务类暴露为远程服务提供了一种独特而灵活的方式。Spring Remoting架构的核心是服

2009-10-14 18:10:00 962

转载 [ZT]JAVA文件操作

1.如何获得当前文件路径 常用:字符串类型:System.getProperty("user.dir");综合:package com.zcjl.test.base;import java.io.File;public class Test {    public static void main(String[] args) throws Exception {        S

2009-10-09 10:10:00 873

转载 [ZT]细说Java之util类

细说Java之util类  线性表,链表,哈希表是常用的数据结构,在进行Java开发时,JDK已经为我们提供了一系列相应的类来实现基本的数据结构。这些类均在java.util包中。本文试图通过简单的描述,向读者阐述各个类的作用以及如何正确使用这些类。 Collection  ├List  │├LinkedList  │├ArrayList  │└Vector  │ └Stack  └Set  Ma

2009-10-09 10:08:00 671

转载 [ZT]EJB的组成

EJB 组件是基于分布式事务处理的企业级应用程序的组件。所有的EJB 都有如下的特点:EJB 包含了处理企业数据的应用逻辑。定义了EJB 的客户界面。这样的界面不受容器和服务器的影响。于是, 当一个EJB 被集合到一个应用程序中去时, 不用更改代码和重新编译。EJB 能够被定制各种系统级的服务,例如安全和事务处理的特性,都不是属于EJB 类的。而是由配置和组装应用程序的工具来实现。有两种类型的

2009-10-09 10:06:00 909

转载 [ZT]Advanced SiteMesh

引用地址:http://www2.matrix.org.cn/resource/article/44/44550.html英文原版:http://www.onjava.com/pub/a/onjava/2004/09/22/sitemesh.html 假设你打算结合多种技术来构建一个企业级web站点。比如,你准备采用J2EE技术往你的web站点里添加新内容,而这个系统的其他部分是用CGI或者微软的

2009-10-09 10:01:00 616

转载 [ZT]初学者如何开发出一个高质量的J2EE系统

J2EE学习者越来越多,J2EE本身技术不断在发展,涌现出各种概念,本文章试图从一种容易理解的角度对这些概念向初学者进行解释,以便掌握学习J2EE学习方向。  首先我们需要知道Java和J2EE是两个不同概念,Java不只是指一种语言,已经代表与微软不同的另外一个巨大阵营,所以Java有时是指一种软件系统的流派,当然目前主要是.NET和Java两大主流体系。  J2EE可以说指Java在数

2009-10-09 10:00:00 713

转载 [ZT]Java Servlet Specification Version 2.3笔记

____________________________________________________________________________Java Servlet Specification  Version 2.3第一章 概要1.1 什么是servlet        servlet是一种基于web组件的java技术,由容器管理,产生动态内容。象其他基于java的组件一样,serv

2009-10-09 09:56:00 956

转载 JDBC——Connection,Statement,PreparedStatement,CallableStatement

 一、Connection[接口]1. 打开一个连接创建与数据库的连接的标准方式是在DataSource或DriverManager上调用方法getConnection()。Driver方法connect使用URL来建立连接。用户可以设置JDBC管理层,然后直接调用Driver方法。在两个驱动程序连接到一个数据库,而用户想明确地选择一个特定的驱动程序时,这是很有用的,尽管这种情况很少见

2009-09-23 11:52:00 992

转载 Map Reduce - the Free Lunch is not over?

Map Reduce - the Free Lunch is not over?by Meng Yan on Nov.15, 2006, under Other微软著名的C++大师Herb Sutter在2005年初的时候曾经写过一篇重量级的文章:”The Free Lunch Is Over: A Fundamental Turn Toward Concurrency i

2009-08-05 17:05:00 7906

转载 清朝“铁帽子王”

清朝“铁帽子王” 清朝皇族封爵共有十四等,即和硕亲王、亲王世子,多罗郡王、郡王长子,多罗贝勒,固山贝子,奉恩镇国公,奉恩辅国公,不入八分镇国公,不入八分辅国公,镇国将军、辅国将军、奉国将军、奉恩将军。封爵方式有两种,一因军功受封叫军功封,一种以皇帝直系子孙受封叫恩封。以军功封者无论王、贝勒均世袭,永不降封。以恩封者一般则每一代降封一等承爵。亲王降至镇国公,郡王降至辅国公,贝勒降至不入八分镇国公

2009-07-19 08:58:00 1821

转载 看了它就能看懂心电图室大部分心电图

一、概述    (一)本文     1、本文较笔者一年前的所写的《看了它就能看懂心电图室大部分心电图》严谨、复杂和难很多,为方便理解,偶不严谨,但基本正确;临床部分多为个人体会以及书籍、文献所见,若与教材不同,以教材为准。     2、本文适用于有一定心电图基础的实习医生或非心内科临床医生,若完全不懂心电图,请先阅读敝作《看了它就能看懂心电图室大部分心电图》(非专科-初级篇-不严谨)。(http:

2009-07-17 11:51:00 2705

转载 网球握拍法

   1 大陆式握拍     这种握拍法还被称为“榔头”式握拍法,因为采用这种握拍时,食指根部压在与拍面水平的那个平面上,拍面的角度几乎与地面垂直,所以你仿佛在用拍框的侧面钉钉子一样。大陆式握拍法适合用来击打任何类型的球,但在发球、打截击球、过顶球、削球以及防守球时采用这种握拍效果更好。    优势:运用大陆式握拍法可以使你在发球或打过顶球时手臂自然下压

2009-06-22 11:13:00 1100

转载 [ZT]C++虚函数表解析

C++虚函数表解析(转) C++中的虚函数的作用主要是实现了多态的机制。关于多态,简而言之就是用父类型别的指针指向其子类的实例,然后通过父类的指针调用实际子类的成员函数。这种技术可以让父类的指针有“多种形态”,这是一种泛型技术。所谓泛型技术,说白了就是试图使用不变的代码来实现可变的算法。比如:模板技术,RTTI技术,虚函数技术,要么是试图做到在编译时决议,要么试图做到运行时决议。 关于

2009-02-25 12:42:00 653

转载 [ZT]B 树、B- 树、B+ 树、B* 树都是什么

 B树       即二叉搜索树:       1.所有非叶子结点至多拥有两个儿子(Left和Right);       2.所有结点存储一个关键字;       3.非叶子结点的左指针指向小于其关键字的子树,右指针指向大于其关键字的子树;       如:              B树的搜索,从根结点开始,如果查询的关键字与结点的关键字相等,那么就命中;

2009-02-20 11:33:00 834

转载 [ZT]RAID详解

RAID 再次詳解      Pcfans最大的痛苦莫過于硬盤故障,輕則影響PC的正常使用,重則珍貴的文件灰飛煙滅。如果上天給你一次后悔的机會,你一定會說:備份一万遍! Pcfans最大的煎熬莫過于對數据傳輸的等待,不管是拷貝大型文件,還是壓縮DVD電影。如果上天給你一次机會,你一定會說:速度提高一万倍! 擺在我們面前是兩個問題求求數据穩定和傳輸速度。怎么來解決?人們早已經

2008-11-25 13:27:00 632

转载 [ZT]SNMP(简单网络管理协议)原理简介

 SNMP(简单网络管理协议),就如他的名字一样,非常简单。您还会通过本文了解到MRTG、SolarWinds等软件的工作原理。晚餐吃了辣椒酱,感觉小舌头被严重灼伤……什么是SNMP?SNMP,简单网络管理协议,它不是软件,而是用于网络管理的一套规则(比如做一个受人尊敬的人,需要遵循哪些规则?不说大话、说到做到、为人诚恳,等等)。真正的网管软件,是基于SNMP写的。为什么使用SNMP?若想对网

2008-11-20 11:17:00 2320

转载 [ZT]泛化,关联,聚合,合成,依赖的关系

  泛化,关联,聚合,合成,依赖的关系泛化(Generalization): 一句话,就是继承的表示。是is-a的关系。 表现为继承或实现关系(is a)。具体形式为类与类之间的继承关系,接口与接口之间的继承关系,类对接口的实现关系。  关联(Association): 用于描述类与类之间的连接,是has -a的关系。类与类之间的联接,它使一个类知道另一个类的属性和方法。例如如果A依赖于B

2008-11-19 15:45:00 2549 3

转载 [ZT]WSDL文件格式解析

WSDL : 描述你的Web服务

2008-03-13 09:29:00 6224

转载 [ZT]Maven入门--概念与实例

最近由于工作原因在研究、应用Maven,有了一些体会就写成了此文。本文虽然是Maven2的入门文章,但并不涉及 Maven的历史、下载与安装,这些内容可以到Maven的官方网站上了解。本文主要是关注Maven中的重要概念,并以一个实例来阐述使用Maven的 基本方法。文末有例子代码下载的链接。 1 关键名词     Project:任何您想build的事物,Maven都可以认为它们是工程。

2008-03-04 17:33:00 911

转载 (ZT)使用JOTM实现分布式事务管理(多数据源)

使用spring和hibernate可以很方便的实现一个数据源的事务管理,但是如果需要同时对多个数据源进行事务控制,并且不想使用重量级容器提供的机制的话,可以使用JOTM达到目的.JOTM的配置十分简单,spring已经内置了对JOTM的支持,一.       首先定义如上的两个bean,利用spring对JOTM进行初始化.二.接下来定义所需的数据源oracle.jdbc.drive

2008-03-03 17:43:00 1461

原创 进程与线程

一、什么是进程? 1.定义简单来说进程就是运行的程序。或者:其中运行着一个或者多个线程的地址空间和这些线程所需要的系统资源2.进程的结构   进程有自己的变量、栈空间、环境空间、程序计数器  但是共享程序代码和系统函数库二、什么是线程1.定义   一个程序的多个执行路线叫做线程thread或者:线程是一个进程内部的一个控制序列2.线程与进程的区别 

2008-02-27 18:24:00 623

Zookeeper分布式进程协同

okeeper最早是Hadoop的一个子项目,主要为Hadoop生态系统中一些列组件提供统一的分布式协作服务,在2010年10月升级成Apache Software Foundation(ASF)顶级项目,它主要提供以下的四个功能: 功能名 组管理服务 分布式配置服务 分布式同步服务 分布式命名服务

2018-01-08

(O'Reilly) - Java Performance Tuning

java 程序调优 一本非常好的java编程优化参考书,帮助我们提高程序效率。 牵涉到垃圾收集,I/O,对象,排序,异常,算法等等... PDF 英文版 318页 Java Performance Tuning Preface - 5 Contents of This Book Virtual Machine (VM) Versions Conventions Used in This Book Comments and Questions Acknowledgments 1. Introduction - 7 1.1 Why Is It Slow? 1.2 The Tuning Game 1.3 System Limitations and What to Tune 1.4 A Tuning Strategy 1.5 Perceived Performance 1.6 Starting to Tune 1.7 What to Measure 1.8 Don't Tune What You Don't Need to Tune 1.9 Performance Checklist 2. Profiling Tools - 21 2.1 Measurements and Timings 2.2 Garbage Collection 2.3 Method Calls 2.4 Object-Creation Profiling 2.5 Monitoring Gross Memory Usage 2.6 Client/Server Communications 2.7 Performance Checklist 3. Underlying JDK Improvements - 55 3.1 Garbage Collection 3.2 Replacing JDK Classes 3.3 Faster VMs 3.4 Better Optimizing Compilers 3.5 Sun's Compiler and Runtime Optimizations 3.6 Compile to Native Machine Code 3.7 Native Method Calls 3.8 Uncompressed ZIP/JAR Files 3.9 Performance Checklist 4. Object Creation - 77 4.1 Object-Creation Statistics 4.2 Object Reuse 4.3 Avoiding Garbage Collection 4.4 Initialization 4.5 Early and Late Initialization 4.6 Performance Checklist 5. Strings - 97 5.1 The Performance Effects of Strings 5.2 Compile-Time Versus Runtime Resolution of Strings 5.3 Conversions to Strings 5.4 Strings Versus char Arrays 5.5 String Comparisons and Searches 5.6 Sorting Internationalized Strings 5.7 Performance Checklist 6. Exceptions, Casts, and Variables - 135 6.1 Exceptions 6.2 Casts 6.3 Variables 6.4 Method Parameters 6.5 Performance Checklist 7. Loops and Switches - 144 7.1 Java.io.Reader Converter 7.2 Exception-Terminated Loops 7.3 Switches 7.4 Recursion 7.5 Recursion and Stacks 7.6 Performance Checklist 8. I/O, Logging, and Console Output - 167 8.1 Replacing System.out 8.2 Logging 8.3 From Raw I/O to Smokin' I/O 8.4 Serialization 8.5 Clustering Objects and Counting I/O Operations 8.6 Compression 8.7 Performance Checklist 9. Sorting - 191 9.1 Avoiding Unnecessary Sorting Overhead 9.2 An Efficient Sorting Framework 9.3 Better Than O(nlogn) Sorting 9.4 Performance Checklist 10. Threading - 205 10.1 User-Interface Thread and Other Threads 10.2 Race Conditions 10.3 Deadlocks 10.4 Synchronization Overheads 10.5 Timing Multithreaded Tests 10.6 Atomic Access and Assignment 10.7 Thread Pools 10.8 Load Balancing 10.9 Threaded Problem-Solving Strategies 10.10 Performance Checklist 11. Appropriate Data Structures and Algorithms - 233 11.1 Collections 11.2 Java 2 Collections 11.3 Hashtables and HashMaps 11.4 Cached Access 11.5 Caching Example I 11.6 Caching Example II 11.7 Finding the Index for Partially Matched Strings 11.8 Search Trees 11.9 Performance Checklist 12. Distributed Computing - 264 12.1 Tools 12.2 Message Reduction 12.3 Comparing Communication Layers 12.4 Caching 12.5 Batching I 12.6 Application Partitioning 12.7 Batching II 12.8 Low-Level Communication Optimizations 12.9 Distributed Garbage Collection 12.10 Databases 12.11 Performance Checklist 13. When to Optimize - 281 13.1 When Not to Optimize 13.2 Tuning Class Libraries and Beans 13.3 Analysis 13.4 Design and Architecture 13.5 Tuning After Deployment 13.6 More Factors That Affect Performance 13.7 Performance Checklist 14. Underlying Operating System and Network Improvements - 304 14.1 Hard Disks 14.2 CPU 14.3 RAM 14.4 Network I/O 14.5 Performance Checklist 15. Further Resources - 315 15.1 Books 15.2 Magazines 15.3 URLs 15.4 Profilers 15.5 Optimizers Colophon - 317

2008-11-20

(O'Reilly) - Jakarta Struts

另一本介绍struts开发的参考书,深入介绍了三层架构中的web层,以及struts开发的细节 pdf 英文 417 Table of Contents Chapter 1 Introduction...............................................................................9 Brief History of the Web ................................................................................................ 9 What are Java Servlets?................................................................................................ 11 JavaServer Pages Technology ...................................................................................... 14 JSP Model 1 and Model 2 Architectures ...................................................................... 16 Why is Model-View-Controller So Important?............................................................ 18 What is a Framework?.................................................................................................. 20 Creation of the Struts Framework ................................................................................ 21 Alternatives to Struts .................................................................................................... 22 Chapter 2 Inside the Web Tier ................................................................29 An Architecture Overview ........................................................................................... 29 The HTTP Request/Response Phase ............................................................................ 34 Struts and Scope ........................................................................................................... 40 Using URL Parameters................................................................................................. 42 Forward versus Redirect............................................................................................... 42 Chapter 3 Overview of the Struts Framework ......................................51 A Banking Account Example....................................................................................... 51 Looking at the Big Picture............................................................................................ 57 Struts Controller Components ...................................................................................... 58 Struts Model Components ............................................................................................ 66 The Struts View Components....................................................................................... 70 Multiple Application Support....................................................................................... 81 Summary ...................................................................................................................... 81 Chapter 4 Configuring the Struts Application ......................................83 Introduction to the Storefront Application ................................................................... 83 What is a Web Application?......................................................................................... 85 The Web Application Directory Structure.................................................................... 86 Web Application Deployment Descriptor .................................................................... 88 Configuring the web.xml file for Struts ........................................................................ 91 The Struts Configuration File..................................................................................... 101 The org.apache.struts.config Package........................................................................ 102 Struts Console Tool.................................................................................................... 121 Reloading the Configuration Files.............................................................................. 122 Chapter 5 Struts Controller Components ............................................123 The Controller Mechanism......................................................................................... 124 The Utilities Classes................................................................................................... 151 Chapter 6 Struts Model Components ...................................................155 The “M” in MVC ....................................................................................................... 155 What is a Business Object? ........................................................................................ 160 Persistence.................................................................................................................. 162 What does Struts Offer For the Model?...................................................................... 163 Building the Storefront Model.................................................................................... 164 Chapter 7 Struts View Components......................................................190 What exactly is a View? ............................................................................................. 190 What are ActionForms?.............................................................................................. 197 Using ActionErrors..................................................................................................... 207 Performing Presentation Validation ........................................................................... 212 Using Dynamic ActionForms..................................................................................... 213 Looking Ahead to JavaServer Faces .......................................................................... 215 Chapter 9 Extending the Struts Framework........................................218 What are Extension Points?........................................................................................ 218 General Extension Points ........................................................................................... 219 Controller Extension Points........................................................................................ 222 Extending View Components..................................................................................... 227 Extending the Model Components ............................................................................. 228 Downsides to Extending the Framework.................................................................... 231 Chapter 10 Exception Handling ..............................................................232 Java Exception Handling............................................................................................ 232 System versus Application Exceptions....................................................................... 237 Using Chained Exceptions ......................................................................................... 238 Exception Handling provided by Struts...................................................................... 241 Tying Up the Loose Ends ........................................................................................... 253 Exceptions in Custom Tags ........................................................................................ 254 Internationalized Exception Handling ........................................................................ 254 Conclusion.................................................................................................................. 255 Chapter 11 Using the Struts Validator ...................................................256 The Need for a Validation Framework....................................................................... 256 Installing and Configuring the Validator.................................................................... 257 Overview of Regular Expressions .............................................................................. 265 Using an ActionForm with the Validator............................................................... 265 Using the Validator Framework ................................................................................. 269 Creating your own Validation Rules .......................................................................... 270 The Validator and JSP Custom Tags.......................................................................... 272 Internationalizing the Validation ................................................................................ 275 Using the Validator Outside of Struts......................................................................... 276 Chapter 12 Internationalization and Struts ...........................................279 What is Internationalization?...................................................................................... 280 Support for I18N in Java ............................................................................................ 281 Internationalizing your Struts Applications................................................................ 288 Exception Handling and Internationalization ............................................................. 292 13 ............................................................................................293 Struts and Enterprise JavaBeans (EJB).............................293 Implementing the Storefront Service Using EJB........................................................ 295 Interfacing Struts to EJB ............................................................................................ 308 Chapter 14 Using Tiles .............................................................................320 Understanding Templates........................................................................................... 320 Installing and Configuring Tiles................................................................................. 326 Overview of Tiles....................................................................................................... 329 The Tiles Tag Library................................................................................................. 332 Using Definitions ....................................................................................................... 340 Internationalization Support with Tiles ...................................................................... 344 Chapter 16 Addressing Performance......................................................346 What is Good Performance?....................................................................................... 346

2008-11-20

SAMS - DB2 Developer's Guide-Fourth Edition

PDF 英文版 1068页 DB2开发者指南,非常全面、详尽的一本参考书。 db2开发者必看,对于其他数据库系统也有非常高的参考价值 DB2 Developer's Guide, Fourth Edition is a new and updated edition that includes the hot new features in DB2 version 6 for OS/390. Not only do the authors explain the changes, but they detail how the new features affect use of DB2. The book delves into the technical underpinnings of DB2, while explaining practical performance and implementation issues. This new edition also covers Internet-related Java features. Table of Contents DB2 Developer's Guide, Fourth Edition - 4 Introduction - 7 Preface - 8 Part I SQL Tools, Tips, and Tricks Chapter 1 - The Magic Words - 12 Chapter 2 - Data Manipulation Guidelines - 43 Chapter 3 - Using DB2 Functions - 70 Chapter 4 - Using DB2 User-Defined Functions and Data Types - 81 Chapter 5 - Data Definition Guidelines - 99 Chapter 6 - Using DB2 Triggers for Integrity - 159 Chapter 7 - Large Objects and Object/Relational Databases - 169 Chapter 8 - Miscellaneous Guidelines - 181 Part II DB2 Application Development Chapter 9 - Using DB2 in an Application Program - 198 Chapter 10 - Dynamic SQL Programming - 238 Chapter 11 - Program Preparation - 255 Chapter 12 - Alternative DB2 Application Development Methods - 293 Chapter 13 - Using DB2 Stored Procedures - 306 Chapter 14 - The Procedural DBA - 325 Chapter 15 - DB2 and the Internet - 329 Part III DB2 In-Depth Chapter 16 - The Doors to DB2 - 348 Chapter 17 - Data Sharing - 401 Chapter 18 - DB2 Behind the Scenes - 412 Chapter 19 - The Optimizer - 425 Chapter 20 - The Table-Based Infrastructure of DB2 - 458 Chapter 21 - Locking DB2 Data - 467 Part IV DB2 Performance Monitoring Chapter 22 - Traditional DB2 Performance Monitoring - 492 Chapter 23 - Using EXPLAIN - 523 Chapter 24 - DB2 Object Monitoring Using the DB2 Catalog - 545 Part V DB2 Performance Tuning Chapter 25 - Tuning DB2's Environment - 567 Chapter 26 - Tuning DB2's Components - 581 Chapter 27 - DB2 Resource Governing - 618 Part VI DB2 Utilities and Commands Chapter 28 - An Introduction to DB2 Utilities - 625 Chapter 29 - Data Consistency Utilities - 629 Chapter 30 - Backup and Recovery Utilities - 649 Chapter 31 - Data Organization Utilities - 674 Chapter 32 - Catalog Manipulation Utilities - 706 Chapter 33 - Miscellaneous Utilities - 720 Chapter 34 - DB2 Commands - 741 Chapter 35 - DB2 Utility and Command Guidelines - 760 Chapter 36 - DB2 Contingency Planning - 766 Part VII The Ideal DB2 Environment Chapter 37 - Components of a Total DB2 Solution - 775 Chapter 38 - Organizational Issues - 807 Part VIII Distributed DB2 Chapter 39 - DRDA - 826 Chapter 40 - Distributed DB2 - 833 Chapter 41 - Distribution Guidelines - 844 Chapter 42 - Data Warehousing with DB2 - 858 Part IX Appendixes Appendix A - DB2 SQLCODE and SQLSTATE Values - 878 Appendix B - The DB2 Catalog Tables - 892 Appendix C - The QMF Administrative Tables - 1026 Appendix D - DB2 Sample Tables - 1031 Appendix E - DB2 Manuals - 1036 Appendix F - Type 1 Indexes - 1040 Appendix G - Valid DB2 Data Types - 1045 Appendix H - DB2 Limits - 1047 Appendix I - DB2 on Other Platforms - 1052 Appendix J - Summary of DB2 Version 4, Version 5, and Version 6 Changes - 1055

2008-11-20

O'Reilly - Java NIO

本书深入探讨java I/O编程高级特性,以及如何使用这些特性去提高编码效率。虽然是jdk1.4的版本,但是对提高我们的开发技巧有很大帮助 pdf 英文版 254页 This book is about advanced input/output on the Java platform, specifically I/O using the Java 2 Standard Edition (J2SE) Software Development Kit (SDK), Version 1.4 and later. The 1.4 release of J2SE, code-named Merlin, contains significant new I/O capabilities that we'll explore in detail. These new I/O features are primarily collected in the java.nio package (and its subpackages) and have been dubbed New I/O (NIO). In this book, you'll see how to put these exciting new features to work to greatly improve the I/O efficiency of your Java applications. Dedication ............................................................................................................................. 1 Preface .................................................................................................................................. 2 Organization...................................................................................................................... 3 Who Should Read This Book............................................................................................. 5 Software and Versions ....................................................................................................... 5 Conventions Used in This Book......................................................................................... 6 How to Contact Us ............................................................................................................. 7 Acknowledgments.............................................................................................................. 8 Chapter 1. Introduction..................................................................................................... 10 1.1 I/O Versus CPU Time ................................................................................................ 10 1.2 No Longer CPU Bound.............................................................................................. 11 1.3 Getting to the Good Stuff ........................................................................................... 12 1.4 I/O Concepts............................................................................................................... 13 1.5 Summary .................................................................................................................... 21 Chapter 2. Buffers .............................................................................................................. 22 2.1 Buffer Basics .............................................................................................................. 23 2.2 Creating Buffers ......................................................................................................... 36 2.3 Duplicating Buffers .................................................................................................... 38 2.4 Byte Buffers ............................................................................................................... 40 2.5 Summary .................................................................................................................... 52 Chapter 3. Channels........................................................................................................... 54 3.1 Channel Basics ........................................................................................................... 55 3.2 Scatter/Gather............................................................................................................. 62 3.3 File Channels.............................................................................................................. 67 3.4 Memory-Mapped Files............................................................................................... 80 3.5 Socket Channels ......................................................................................................... 91 3.6 Pipes ......................................................................................................................... 109 3.7 The Channels Utility Class....................................................................................... 114 3.8 Summary .................................................................................................................. 115 Chapter 4. Selectors ......................................................................................................... 117 4.1 Selector Basics ......................................................................................................... 117 4.2 Using Selection Keys ............................................................................................... 125 4.3 Using Selectors......................................................................................................... 128 4.4 Asynchronous Closability ........................................................................................ 137 4.5 Selection Scaling ...................................................................................................... 138 4.6 Summary .................................................................................................................. 143 Chapter 5. Regular Expressions ..................................................................................... 145 5.1 Regular Expression Basics ....................................................................................... 145 5.2 The Java Regular Expression API............................................................................ 147 5.3 Regular Expression Methods of the String Class..................................................... 168 5.4 Java Regular Expression Syntax .............................................................................. 169 5.5 An Object-Oriented File Grep.................................................................................. 172 5.6 Summary .................................................................................................................. 178 Chapter 6. Character Sets ............................................................................................... 180 6.1 Character Set Basics................................................................................................. 180 6.2 Charsets .................................................................................................................... 182 6.3 The Charset Service Provider Interface ................................................................... 201 6.4 Summary .................................................................................................................. 214 Appendix A. NIO and the JNI......................................................................................... 215 Appendix B. Selectable Channels SPI ............................................................................ 217 Appendix C. NIO Quick Reference ................................................................................ 220 C.1 Package java.nio ...................................................................................................... 220 C.2 Package java.nio.channels ....................................................................................... 227 C.3 Package java.nio.channels.spi ................................................................................. 240 C.4 Package java.nio.charset.......................................................................................... 242 C.5 Package java.nio.charset.spi .................................................................................... 246 C.6 Package java.util.regex ............................................................................................ 246 Colophon ........................................................................................................................... 250

2008-11-20

O'REILLY Learning the Unix OS

一本通俗易懂的unix入门书籍 英文版 chm格式 方便阅读 简介: Learning the UNIX Operating System teaches the basic system utility commands to get you started with UNIX. Instead of overwhelming you with a lot of details, we want you to be comfortable in the UNIX environment as soon as possible. So we cover the most useful features of a command instead of describing all its options in detail. 目录: Table of Contents Preface Chapter 1: Getting Started Chapter 2: Using Window Systems Chapter 3: Your UNIX Account Chapter 4: File Management Chapter 5: Redirecting I/O Chapter 6: Multitasking Chapter 7: Where to Go from Here Appendix A: Reading List Appendix B: Reference

2008-11-20

Practical UNIX & Internet Security

Practical UNIX & Internet Security<br>英文版 chm 号称1004页<br><br>一本老书,但是unix的基本原理,与网络安全的基本原理还是值得学习的<br><br>Table of Contents<br>Preface<br><br><br>Part I: Computer Security Basics<br>Chapter 1: Introduction<br>Chapter 2: Policies and Guidelines<br><br><br><br>Part II: User Responsibilities<br>Chapter 3: Users and Passwords<br>Chapter 4: Users, Groups, and the Superuser<br>Chapter 5: The UNIX Filesystem<br>Chapter 6: Cryptography<br><br><br><br>Part III: System Security<br>Chapter 7: Backups<br>Chapter 8: Defending Your Accounts<br>Chapter 9: Integrity Management<br>Chapter 10: Auditing and Logging<br>Chapter 11: Protecting Against Programmed Threats<br>Chapter 12: Physical Security<br>Chapter 13: Personnel Security<br><br><br><br>Part IV: Network and Internet Security<br>Chapter 14: Telephone Security<br>Chapter 15: UUCP<br>Chapter 16: TCP/IP Networks<br>Chapter 17: TCP/IP Services<br>Chapter 18: WWW Security<br>Chapter 19: RPC, NIS, NIS+, and Kerberos<br>Chapter 20: NFS<br><br><br><br>Part V: Advanced Topics<br>Chapter 21: Firewalls<br>Chapter 22: Wrappers and Proxies<br>Chapter 23: Writing Secure SUID and Network Programs<br><br><br><br>Part VI: Handling Security Incidents<br>Chapter 24: Discovering a Break-in<br>Chapter 25: Denial of Service Attacks and Solutions<br>Chapter 26: Computer Security and U.S. Law<br>Chapter 27: Who Do You Trust?<br><br><br><br>Part VII: Appendixes<br><br>Appendix A: UNIX Security Checklist<br>Appendix B: Important Files<br>Appendix C: UNIX Processes<br>Appendix D: Paper Sources<br>Appendix E: Electronic Resources<br>Appendix F: Organizations<br>Appendix G: Table of IP Services<br><br><br><br>

2008-02-27

CGI Programming on the World Wide Web

英文版 pdf 372页<br>一本老书,但是浏览一下也有借鉴作用,<br>可以了解一下web应用的前世今生,历史由来。<br><br>Table of Contents<br>Preface<br>Chapter 1: The Common Gateway Interface (CGI)<br>Chapter 2: Input to the Common Gateway Interface<br>Chapter 3: Output from the Common Gateway Interface<br>Chapter 4: Forms and CGI<br>Chapter 5: Server Side Includes<br>Chapter 6: Hypermedia Documents<br>Chapter 7: Advanced Form Applications<br>Chapter 8: Multiple Form Interaction<br>Chapter 9: Gateways, Databases, and Search/Index Utilities<br>Chapter 10: Gateways to Internet Information Servers<br>Chapter 11: Advanced and Creative CGI Applications<br>Chapter 12: Debugging and Testing CGI Applications<br>Appendix A: Perl CGI Programming FAQ<br>Appendix B: Summary of Regular Expressions<br>Appendix C: CGI Modules for Perl 5<br>Appendix D: CGI Lite<br>Appendix E: Applications, Modules, Utilities, and Documentation<br>Index<br>

2008-02-27

Linux Ret Hat Cetified Engineer

英文版 pdf<br><br>这是为准备linux ret hat 认证工程师考试的讲义<br>非常精华,一共只有16页<br><br>Abstract:<br>This study guide will help you to prepare for Linux/Unix Exam RH300,<br>Red Hat Certified Engineer. Exam topics include Hardware and<br>Installation, Configuration and Administration, Kernel Services,<br>Networking Services, X Window System, Security, Routers, Firewalls,<br>Clusters and Troubleshooting. The exam has three components: Debug<br>(2.5 hrs), Multiple Choice (1 hr) and Server Install and Network<br>Services Setup (2.5 hrs.)<br><br><br>目录 <br>Contents:<br>Contents: .......................................................... Error! Bookmark not defined.<br>Pre-Install..................................................................................................... 2<br>Installation and Troubleshooting....................................................................... 4<br>System Configuration ..................................................................................... 8<br>X Windows System......................................................................................... 9<br>Linux Shells and Commands / Utilities..............................................................11<br>Linux Shell Comparison Table.......................................................................11<br>Basic Linux Commands and Utilities .................................................................12<br>Linux Networking ..........................................................................................14<br>System Administration and Security ................................................................15

2008-02-27

Linux Command Directory

linux 命令参考大全<br>英文版 PDF<br><br>本书是一本linux使用者开发者的一部命令参考书,<br>使用非常方便。<br><br>摘录grep<br>grep [options] pattern [files]<br>Search one or more files for lines that match a regular expression pattern.<br>Regular expressions are described in Chapter 9. Exit status is 0 if any lines<br>match, 1 if none match, and 2 for errors. See also egrep and fgrep.<br>Options<br>-a, --text<br>Don't suppress output lines with binary data; treat as text.<br>-b, --byte-offset<br>Print the byte offset within the input file before each line of output.<br>-b, --byte-offset<br>Print the byte offset within the input file before each line of output.<br>-c, --count<br>Print only a count of matched lines. With -v or --revert-match option,<br>count nonmatching lines.<br>-d action, --directories=action<br>Define an action for processing directories. Possible actions are:<br>read<br>Read directories like ordinary files (default).<br>skip<br>Skip directories.<br>recurse

2008-02-27

Zope 与 MySql集成(英文版)

英文pdf 23页<br/>Zope,Z Object Publishing Environment,它既是http服务器,又是数据库,又包含脚本编程语言。Zope是一种支持多种平台开源的Web应用服务器软件,它提供了完善的功能和强大的动力,适用于构建各种类型的Web应用,从小型网站到企业级分布式网络应用都有Zope的用武之地。Zope在许多方面都超过了ASP、PHP、JSP等传统方法,是一套优秀而完整的解决方案。本专题介绍Zope与流行的数据库MySql的集成。<br/><br/><br/>As a recent convert to Zope from PHP, I was curious: could Zope really give me all the capabilities I was used<br/>to in PHP?<br/>I decided to find out, by using one of my most common activities with PHP as the benchmark: connecting to<br/>and retrieving records from a MySQL database. As it turned out, Zope manages this quite well, and it's also<br/>nowhere near as complicated as you might think. And so, over the course of this article, I'm going to show<br/>you how to hook your Zope server up to a MySQL database, and write DTML code that allows you to retrieve<br/>and manipulate MySQL table records using standard SQL commands. If this sounds interesting, keep reading.

2007-06-15

UNIX PROGRAMMER’S MANUAL(UNIX编程手册)

UNIX程序员手册,是unix下编程必备,就不用多说了,虽然版本稍微老点,但是仍然非常需要在手头备上一本。<br/>英文pdf版,336页<br/><br/><br/>UNIX PROGRAMMER’S MANUAL<br/>Seventh Edition, Volume 2A<br/>January, 1979<br/><br/>Bell Telephone Laboratories, Incorporated<br/>Murray Hill, New Jersey

2007-06-15

THE Unix COOK BOOK

此文档总结了Unix最常用的一些命令<br/>英文pdf 23页,清晰明了,非常实用。<br/><br/>This document summarizes the most generally useful commands of the Unix computer systems available at Mizzou. For<br/>more detailed information consult the Unix man pages available on all the Unix operating systems. Specific Unix systems<br/>often have considerable on-line documentation besides the Unix man pages. Consult the system-specific documentation.

2007-06-15

eclipse的jboss服务器配置安装(英文)

eclipse的EASIE jboss服务器插件 的安装配置步骤<br/>英文pdf版 6页<br/>非常简单,清晰<br/>This article introduces practical J2EE server-side development techniques using Eclipse with JBoss Server 2.4.4 integrated with Tomcat 4.0.1 (JBoss). We’ll demonstrate how to install, configure, and run the EASIE JBoss Plugin for Eclipse in preparation to performing J2EE server-side development. Additionally, use of this plugin with JBoss 3.0 Alpha and Beta will also be discussed.

2007-06-15

Design Patterns Explained(设计模式解析英文版)

pdf英文版 357页1999年第10届效能大奖 本书讲述了作者在学习设计模式过程中所积累的个人经验。很不错的一本书。解释了各个设计模式是如何总结整理出来的,并给出了具体的应用示例。所用的英文语句简单易懂。【内容简介】本书讲述了作者在学习设计模式过程中所积累的个人经验。书中包含很多实际的和可应用的实例,教你如何使用模式解决普通的编程问题,以及解释如何利用模式来进行先进的软件设计。本书清晰地演示了模式如何使整个开发过程变得更容易,还解释了面对对象设计的关键原则以及特定模式的概念和优势。通过直观的C++和Java实例,本书阐明了使用模式的原因以及如何使用模式,并解释了模式的实现。

2007-06-05

设计模式(4人帮) 英文html版

4人帮设计模式,不用多介绍了,这一版是html版,非常方便阅读。

2007-06-05

Programming Linux Games

PDF英文版 433页<br/>开发linux游戏必备.<br/><br/>This book is for anyone who wants to learn how to write games for Linux. I<br/>assume that you know the basics of working with Linux; if you know enough to<br/>start X, open a terminal, copy les around, and re up a text editor, you're good<br/>to go. I also assume that you have a reasonable grasp of the C programming<br/>language. Flip through the book and see if you can decipher the syntax of the<br/>examples. We'll go through all of the necessary library calls, so don't worry if<br/>you see a bunch of unfamiliar function names, but you should be able to<br/>understand the majority of the actual code. No prior experience with<br/>multimedia programming is assumed, so don't worry if you've never had the<br/>perverse pleasure of hacking a graphics register or shoving a pixel into memory.<br/>All in good time!<br/>Although this isn't a reference manual in the traditional sense, chapters 4, 5, 6,<br/>and 8 provide reference boxes for most of the API functions we cover. I hope<br/>that even experienced multimedia programmers can nd something useful here.<br/>I will not discuss 3D programming in this book. There are already plenty of<br/>excellent books on OpenGL, and only a small bit of OpenGL programming is<br/>directly related to Linux. However, I will demonstrate how to use SDL as an<br/>e ective replacement for the GLUT toolkit; see page 140.

2007-06-05

Solaris Kernel Tuning for Security

The Solaris kernel provides a great deal of user-configurable control over the system<br/>TCP/IP stack. Everything from cache table lifetimes to the number of TCP connections<br/>that the system can address are controllable. However, without understanding the<br/>underlying need for tuning these kernel parameters many system administrators<br/>choose to ignore them - thereby leaving their systems vulnerable to a resourceful<br/>assailant.

2007-06-05

Advanced Linux Programming(高级linux编程)

PDF版本,368页,非常简洁<br/>Contents At a Glance<br/>I Advanced UNIX Programming<br/>with Linux<br/>1 Getting Started 3<br/>2 Writing Good GNU/Linux<br/>Software 17<br/>3 Processes 45<br/>4 Threads 61<br/>5 Interprocess Communication 95<br/>II Mastering Linux<br/>6 Devices 129<br/>7 The /proc File System 147<br/>8 Linux System Calls 167<br/>9 Inline Assembly Code 189<br/>10 Security 197<br/>11 A Sample GNU/Linux<br/>Application 219<br/>III Appendixes<br/>A Other Development Tools 259<br/>B Low-Level I/O 281<br/>C Table of Signals 301<br/>D Online Resources 303<br/>E Open Publication License<br/>Version 1.0 305<br/>F GNU General Public License 309

2007-06-04

空空如也

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

TA关注的人

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