- 博客(53)
- 资源 (9)
- 问答 (2)
- 收藏
- 关注
原创 Return zero length collections or arrays as opposed to returning null
Returning null instead of zerolength collection (use Collections.EMPTY_SET, Collections.EMPTY_LIST, Collections.EMPTY_MAP) is moreerror prone, since the programmer writing the calling method might for...
2010-06-28 17:25:21
232
原创 How to explain my project architecture
I have attended some interview recently. i came across with a common question in both the interviews. The Question is "Can you explain your current project architecture?" i have answered that question...
2010-06-18 23:19:33
374
原创 此文竟然成于2004,真是让我惭愧至极
Today's Java job market is healthy. Major online job search engines show thousands of openings, and people are competing for these jobs. Skilled Java developers are just as popular as Visual Basic o...
2010-05-06 23:42:38
214
原创 Tomcat 屏蔽IP
只要将这段话加入tomcat的server.xml的两个HOST之间即可<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="192.168.242.68.148,192.168.242.68.127"/> 这样除了allow以外的ip的访问都将遭到拒绝。 如果添加 deny属性,...
2010-01-11 20:59:08
314
原创 删除一个目录及该目录下所有的文件
@echo offsubst s: /dsubst s: "C:\Documents and Settings\randy.orton\My Documents\test gg\WIKI"rmdir s: /S/Qrmdir s: pause现在的CMD想处理点东西真是有些费事,总是遇到带空格的路径。。。 ...
2010-01-08 18:20:21
285
介绍Java EE 6 Platform : Part 1
Java Platform,Enterprise Edition (Java EE) 作为业界标准使用Java语言来编写企业级的程序。基于稳固的Java平台基础和Standard Edition (Java SE),Java EE新增了一些库和系统服务以支持扩展性,访问性,安全性,整合性以及其他企业级程序的需求。 自从1999年它的最初发布,Java EE已经成长为一个拥有丰富函数且...
2009-12-17 21:25:46
260
查看Java类库源码
1.点 “window”-> "Preferences" -> "Java" -> "Installed JRES" 2.此时"Installed JRES"右边是列表窗格,列出了系统中的 JRE 环境,选择你的JRE,然后点边上的 "Edit...", 会出现一个窗口(Edit JRE) 3.选中rt.jar文件的这一项:“c:\program files\java
2009-11-18 16:10:58
246
My Eclipse Style
<?xml version="1.0" encoding="UTF-8"?><profiles version="10"><profile name="MyEclipse" version="10"><setting id="org.eclipse.jdt.core.formatter.align_ty
2009-11-17 21:03:09
260
The constructor FileReader(String) is undefined
今天想写个程序给一批文件改个名,可是一直无法初始化FileReader,明明在JDK上查到了构造函数的用法,可用起来就是提示The constructor FileReader(String) is undefined,仔细检查了一下才发现,原来类的名字就是FileReader,被当成构造函数处理了。。。。...
2009-11-17 21:01:27
3245
1
Number Transformer
最近在工行的网上银行转帐时发现阿拉伯数字会自动转换成汉字金额,于是利用业余时间自己也写了一个。。。 发上来,留个纪念。。。。。 或许会有很多bug也说不定。。。。。...
2009-09-15 21:47:12
179
原创 text的disabled和readonly的区别
input有两个属性,一个是disabled,一个是readonly,都可以让text进入无法输入的状态,只是disabled会让text的value也变成灰色的,而readonly则让value还是黑色的。。。。 readonly后仍然可以onclick,而disabled就直接让text挂了。。 ...
2009-09-11 19:43:06
345
Javascript的全局变量
Javascript的全局变量,也就是定义在function之外的变量,虽然可以定义,但是不能在function之外赋值。 var tempValue = "test"function test(){ alert(tempValue)} 这样的代码是可能无法取得值的。 每次我都要加一个function initial_variable()这样来赋值...
2009-09-11 19:34:50
206
Java中的初始化顺序
public class Test{ { System.out.println("In non-static initialization block!"); } static { System.out.println("In static initialization block!"); }...
2009-06-16 20:36:02
129
原创 我翻译的Struts2教程.
大部分都移至JavaEye了,因为csdn的编辑器经常出问题,有兴趣的可以去看看http://www.javaeye.com/wiki/taojintianxiastruts2
2009-04-23 17:21:00
717
转载 14.Adding Validation to Struts 2 Login Application
In this section we will write the code to validate the login application. After completing this section you will be able to write validations for your Struts 2 projects. The concepts defined in this s
2009-04-23 17:19:00
930
原创 14.向login程序添加校验
在本章我们会编写验证Login程序的代码。完成后你就能给你自己的struts2程序编写验证了。本章定义的概念都是很有解释性的,会使读者快速提高他/她对struts2程序的开发能力. Struts2是一个优雅的框架,它提供了很多功能来快速开发基于web的应用程序。这里你会学习简单的编写struts2的表单验证代码。我们会对我们的login程序添加表单验证代码。 为了验证login程序
2009-04-23 17:18:00
807
递归实现加法
又是一道面试的练习题 : 用递归实现加法这是我写的: public class SumPlus{ public static void main(String args[]) { int[] num = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int x = 10; Sum...
2009-03-30 17:55:09
451
Java多态例子
最近想要找工作,看了些招聘的笔试题.其中一个就是用多态方式表现猫咬狗咬的. 于是写了一个简单的例子,但觉得对这个概念的理解还不是特别深入,希望大家斧正 我创建了一个Animal接口 : public interface Animal{ public void bite();} 又建立了一个Polymorphizm类 public class Polymorphi...
2009-03-30 17:25:22
166
转载 13.Developing Login Application in Struts 2
In this section we are going to develop login application based on Struts 2 Framework. Our current login application does not validate the user against the database. Instead login name and password ar
2009-03-10 22:14:00
1337
翻译 13.创建Struts2登录程序
本章我们将会开发基于Struts2框架的登录程序.我们当前的程序不能通过数据库验证用户.相反我们是通过硬编码的形式在Action中验证的(用户名: Admin 密码: Admin) 程序是如何工作的 : 1. 显示登录页面等待输入2. 用户输入用户名和密码后点击"Login"按钮3. 在Action类中用户校验得到了执行,如果用户在name/pas
2009-03-10 22:08:00
2693
转载 12.Struts 2 Redirect Action
In this section, you will get familiar with struts 2 Redirect action and learn to use it in the struts 2 applicationRedirect After Post: This post pattern is supported by Struts 2. This is a common
2009-03-09 17:26:00
3099
翻译 12.Struts2重定向Action
在这章中,你将熟悉一下Struts2重定向Action并学习如何在Struts2程序中使用它.Post之后的重定向 : 该post模式由Struts2提供.这web程序中是常见的模式.由一个action转发到另一个action.这是常见的用法转发action显示页面.转发Action结果 : 重定向模式由Struts2提供.ActionMapperFactory提供的ActionM
2009-03-09 17:23:00
4404
2
转载 11.Struts 2 Actions Introduction
When a clients request matches the actions name, the framework uses the mapping from struts.xml file to process the request. The mapping to an action is usually generated by a Struts Tag. The action
2009-03-09 16:52:00
1185
翻译 11.Struts 2 Actions介绍
当客户端请求与action的name相匹配时,框架会使用struts.xml文件中的映射来处理请求.通常指向action的映射是由标签生成的.action标签(在struts.xml文件的struts根节点中)通过name,框架提供的默认扩展和其它必须的信息来指定action.Handler类的默认进入方法是由Action接口定义的.Struts2 Action接口 : 所有的Ac
2009-03-09 16:46:00
1100
翻译 10.Struts 2 Actions Example
11.Struts 2 Actions介绍12.Struts2重定向Action11.Struts 2 Actions Introduction12.Struts 2 Redirect Action
2009-03-09 16:45:00
615
5.Struts 1.x 对比 Struts 2.x
本章我们会比较这两个框架的不同特性.与Struts1相比,Struts2是非常简单的,下面是Struts2的一些优秀特性 : 5.1 Servlet依赖性由于Action在被调用时,HttpServletRequest和HttpServletResponse被传递到execute()方法中,Struts1中的Action对Servlet的API是有依赖性的.但如果在Stru...
2009-03-08 14:38:11
144
4.为什么使用Struts
新版本的Struts2.0是struts 的action架构和webwork的融合体.依照Struts2.0.1的发布公告,一些关键特性如下 : l 设计简单: 使用抽象类而不是接口是Struts1的一个设计上的问题,这已经在Struts2中得到了解决.在Struts2中绝大多数类都是基于接口的,并且它的绝大多数核心接口都是独立于HTTP的....
2009-03-08 14:36:35
169
3.Struts2 结构
Struts与webwork已合并为Struts2框架,Struts2框架良好的扩展性与简洁性使其适用于任何规模的企业web程序的开发.本节我们将向大家展示Struts2框架的结构 在Struts2中一个请求的生存周期:1. 用户发送请求 : 用户为访问资源向服务器发送请求.2. FilterDisp...
2009-03-06 22:40:49
135
转载 9.Struts Configuration file - struts.xml
In this section we will introduce you to the struts.xml file. This section explains you how best you can use the struts.xml file for you big projects.The struts.xml FileThe Struts 2 Framework uses
2009-03-06 20:44:00
2046
翻译 9.Struts配置文件 - struts.xml
本章我们会向你介绍struts.xml文件,讲解如何最优化你项目的struts.xml. struts.xml文件Struts2使用一个配置文件(struts.xml)来初始化它自身的资源.这些资源包括 : l 拦截器可以对一个请求进行预处理和后期处理.l Action类可以调用业务逻辑与数据访问的代码.l 结果可以使用JSP,Ve
2009-03-06 20:42:00
1414
1
2.Struts2 历史
Apache Struts是一个用来开发Java web应用的开源框架。最初是由创始人,程序员Craig R. McClanahan开发的,在这之后Apache软件基金会于2002年进行接管。Struts提供了一个非常优秀的架构使得组织基于HTML格式与Java代码的Jsp与Servlet应用开发变得非常简单。拥有所有Java标准技术与Jakarta辅助包的struts1建立了一个可扩展的开发环境...
2009-03-06 13:30:37
177
原创 1.Struts 2 Features
The strut-2 framework is designed for the compilation of the entire development cycle including of building, developing and maintaining the whole application. It is very extensible as each class of th...
2009-03-05 23:54:34
143
1.Struts2 特性
Struts2框架为整个开发周期的编写而设计,包括创建,开发和维护整个程序。它的扩展性极强,框架的每一个类都是基于接口的,并且所有的基础类都可以在扩展程序中获得,甚至你可以添加你自己的。基本的平台要求为Servlet API 2.4, JSP API 2.0和Java 5. 下面给出了一些现行的Apache Struts2框架的常见特性 : 结...
2009-03-05 23:52:34
191
转载 8.Writing JSP, Java and Configuration for Hello World Application
In this section we will write JSP, Java and required configuration files for our Struts 2 Hello World application. Now in struts 2 struts.xml is used to configure the applications. Understanding t
2009-03-05 23:19:00
1310
2
翻译 8.为Hello World程序编写JSP文件,Java文件和配置文件
本章中我们将会创建Struts 2 Hello World程序所需的JSP文件,Java文件和必要的配置文件.现在Struts2使用struts.xml来配置程序. 认识程序 我们的程序是很简单的,只显示Hello World信息以及服务器的日期和时间.当用户点击教程主页“Run Struts 2 Hello World Application”的链接的时候,一个请求被发送到了Stru
2009-03-05 23:13:00
1665
转载 7.Struts 2 Hello World - Developing Hello World Application
In this section we will develop Hello World application based on Struts 2 Framework. Our Struts 2 Hello World application is your first step towards developing applications based on Struts 2 Framework
2009-03-04 23:22:00
857
Kubernetes : Up and Running: Dive into the Future of Infrastructure
2018-07-20
Microsoft_Office_SharePoint_Server_2007_Forms_Authentication.pdf
2007-07-30
Java开发银行项目都有什么要求
2009-04-09
谈谈你对面向对象的看法
2009-04-07
TA创建的收藏夹 TA关注的收藏夹
TA关注的人