- 博客(11)
- 收藏
- 关注
原创 关于Java和MySQL中文字符编码问题
1.中文字符转换: String newStr =new String(oldStr.getBytes(oldEncodeSet),newEncodeSet); 其中oldEncodeSet是原字符集,newEncodeSet是目的字符集.2.各应用程序的字符编码格式: 普通Java Application:iso8859-1 MySQL数据库:
2006-04-01 22:41:00 1954
原创 Struts Learning Note4 --- RequestProcessor
To create your own RequestProcessor, follow these steps: 1.Create a class that extends the org.apache.struts.action.RequestProcessor class. 2.Add a default empty constructor to the RequestProces
2006-03-15 21:43:00 1125
原创 Struts Learning Note3 --- Action
To develop your own Action class, you must complete the following steps. These steps describe the minimum actions that you must take when creating a new Action and are the focus of this section: 1.
2006-03-15 20:31:00 1014
原创 Struts Learning Note2 --- ActionServlet
When the ActionServlet receives a request, it completes the following steps: 1.The doPost() or doGet() methods receive a request and invoke the process() method. 2.The process() method gets the
2006-03-15 19:52:00 1125
原创 Swing学习笔记4---窗口与面板
Swing的容器结构与JLayeredPane的使用: Swing的容器包括JApplet、JFrame、JDialog、JWindow、JInternalFrame,JInternalFrame是lightweight容器,其他都是heavyweight的。当我们要加入某个组件到Swing的容器中时,并不是直接加入到RootPane中,而是加到其下的某一成员(LayeredPane或C
2006-03-14 23:33:00 2302 1
原创 Swing学习笔记3---事件
概述: 自从JDK1.1之后一改以前版本的事件处理模式,目前都是以委托事件模式(Delegation Event Model)来处理用户所触发的事件。 当用户激活的事件不是我们所想要的时,就不加任何处理,如此一来就可以增加系统效率,整个处理结构也会清楚许多。因此Delegation Event Model就像一部注册机,可以让用户注册所有想要捕获的事件。 事件处理总共
2006-03-14 13:25:00 1916
原创 Swing学习笔记2---版面结构
Swing的版面结构: Swing中几乎所有的组件都从JCompoment衍生而来,也就是说这些组件都是lightweight的,均是由纯Java代码编写而成,可对组件做最优化操作来节省系统资源,并增加组件的使用弹性。 至于JFrame、JDialog、JWindow与JApplet,是heavyweight组件,必须使用到native代码来画出这四个窗口组件,因此要在操作系统
2006-03-14 10:55:00 2498
原创 Swing学习笔记1---概述
Swing与AWT的关系: AWT中大部分组件都含有native代码,而操作系统并非java编写,故要与操作系统相互沟通就必须使用与操作系统兼容的程序语言,产生所谓的对等(peer)实体,一个AWT组件就等于一个对等对象,这样的做法所需付出的代价除了没有弹性外,也可能消耗大量的系统资源。 Swing彻底解决了上诉问题。Swing组件是由纯Java程序所编写的(除了JFrame,
2006-03-14 09:59:00 2437
原创 Struts Learning Note1 --- Overview
The promise of Struts is this: Develop better software faster. Struts is a "Web Application Framework." Framework: a collection of Java code designed to help you build solid applications wh
2006-03-13 21:23:00 951
原创 [转]正则表达式
前言 正则表达式是烦琐的,但是强大的,学会之后的应用会让你除了提高效率外,会给你带来绝对的成就感。只要认真去阅读这些资料,加上应用的时候进行一定的参考,掌握正则表达式不是问题。索引1. 引子 目前,正则表达式已经在很多软件中得到广泛的应用,包括*nix(Linux, Unix等),HP等操作系统,PHP,C#,Java等开发环境,以及很多的应用软件中,都可以看到正则表达式的影子。 正则表达式
2006-02-13 11:59:00 946
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人