Java.util.Collection兩副結(jié)構(gòu)圖片

這張圖片太大了。 就點擊看吧:
http://www.falkhausen.de/download/diagram/img/java.util.Collection.gif
posted @ 2006-10-09 17:39 Vikings 閱讀(348) | 評論 (0) | 編輯 收藏
posted @ 2006-10-09 17:39 Vikings 閱讀(348) | 評論 (0) | 編輯 收藏
posted @ 2006-05-26 23:31 Vikings 閱讀(152) | 評論 (0) | 編輯 收藏
http://www.google.com/microsoft?
微軟風(fēng)格的入口posted @ 2006-04-30 14:21 Vikings 閱讀(243) | 評論 (0) | 編輯 收藏
posted @ 2006-02-23 16:57 Vikings 閱讀(356) | 評論 (0) | 編輯 收藏
posted @ 2006-02-17 19:25 Vikings 閱讀(882) | 評論 (0) | 編輯 收藏
2.添加rar,iso等的mime-type映射
避免在瀏覽器里直接打開。
3.對html靜態(tài)頁面設(shè)置編碼
http://sirsunny.cnblogs.com/archive/2005/08/11/212541.html
posted @ 2006-02-17 19:22 Vikings 閱讀(4327) | 評論 (1) | 編輯 收藏
1. 從文件/或者Url中獲得Image.
java.awt.image包下的
返回是java.awt.Image
javax.imageio包下的:
返回是BufferedImage
2. Image to bytes;
3. 剪裁圖片
起作用是ImageFilter
posted @ 2006-02-16 15:22 Vikings 閱讀(2342) | 評論 (1) | 編輯 收藏
posted @ 2006-02-13 18:44 Vikings 閱讀(168) | 評論 (0) | 編輯 收藏
1。^\d+$ //匹配非負(fù)整數(shù)(正整數(shù) + 0)
2。^[0-9]*[1-9][0-9]*$ //匹配正整數(shù)
3。^((-\d+)|(0+))$ //匹配非正整數(shù)(負(fù)整數(shù) + 0)
4。^-[0-9]*[1-9][0-9]*$ //匹配負(fù)整數(shù)
5。^-?\d+$ //匹配整數(shù)
6。^\d+(\.\d+)?$ //匹配非負(fù)浮點數(shù)(正浮點數(shù) + 0)
7。^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$ //匹配正浮點數(shù)
8。^((-\d+(\.\d+)?)|(0+(\.0+)?))$ //匹配非正浮點數(shù)(負(fù)浮點數(shù) + 0)
9。^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$ //匹配負(fù)浮點數(shù)
10。^(-?\d+)(\.\d+)?$ //匹配浮點數(shù)
11。^[A-Za-z]+$ //匹配由26個英文字母組成的字符串
12。^[A-Z]+$ //匹配由26個英文字母的大寫組成的字符串
13。^[a-z]+$ //匹配由26個英文字母的小寫組成的字符串
14。^[A-Za-z0-9]+$ //匹配由數(shù)字和26個英文字母組成的字符串
15。^\w+$ //匹配由數(shù)字、26個英文字母或者下劃線組成的字符串
16。^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$ //匹配email地址
17。^[a-zA-z]+://匹配(\w+(-\w+)*)(\.(\w+(-\w+)*))*(\?\S*)?$ //匹配url
18。匹配中文字符的正則表達(dá)式: [\u4e00-\u9fa5]
19。匹配雙字節(jié)字符(包括漢字在內(nèi)):[^\x00-\xff]
20。應(yīng)用:計算字符串的長度(一個雙字節(jié)字符長度計2,ASCII字符計1)
String.prototype.len=function(){return this.replace([^\x00-\xff]/g,"aa").length;}
21。匹配空行的正則表達(dá)式:\n[\s| ]*\r
22。匹配HTML標(biāo)記的正則表達(dá)式:/<(.*)>.*<\/\1>|<(.*) \/>/
23。匹配首尾空格的正則表達(dá)式:(^\s*)|(\s*$)
* 正則表達(dá)式用例
* 1、^\S+[a-z A-Z]$ 不能為空 不能有空格 只能是英文字母
* 2、\S{6,} 不能為空 六位以上
* 3、^\d+$ 不能有空格 不能非數(shù)字
* 4、(.*)(\.jpg|\.bmp)$ 只能是jpg和bmp格式
* 5、^\d{4}\-\d{1,2}-\d{1,2}$ 只能是2004-10-22格式
* 6、^0$ 至少選一項
* 7、^0{2,}$ 至少選兩項
* 8、^[\s|\S]{20,}$ 不能為空 二十字以上
* 9、^\+?[a-z0-9](([-+.]|[_]+)?[a-z0-9]+)*@([a-z0-9]+(\.|\-))+[a-z]{2,6}$郵件
* 10、\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)* 輸入多個地址用逗號或空格分隔郵件
* 11、^(\([0-9]+\))?[0-9]{7,8}$電話號碼7位或8位或前面有區(qū)號例如(022)87341628
* 12、^[a-z A-Z 0-9 _]+@[a-z A-Z 0-9 _]+(\.[a-z A-Z 0-9 _]+)+(\,[a-z A-Z 0-9 _]+@[a-z A-Z 0-9 _]+(\.[a-z A-Z 0-9 _]+)+)*$
* 只能是字母、數(shù)字、下劃線;必須有@和.同時格式要規(guī)范 郵件
* 13 ^\w+@\w+(\.\w+)+(\,\w+@\w+(\.\w+)+)*$上面表達(dá)式也可以寫成這樣子,更精練。
14 ^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$
posted @ 2006-01-06 15:48 Vikings 閱讀(4799) | 評論 (0) | 編輯 收藏
Portal Server , portlet , JSR-168規(guī)范
Portal的概念是基于Web的,以“應(yīng)用整合”和“消除信息孤島”為最終目的,提供單點登錄、內(nèi)容聚合、個性化門戶定制等功能。
Portal服務(wù)器是容納Portlet容器,支持Portlet呈現(xiàn)的普通或者特殊Web服務(wù)器。
Portal服務(wù)器優(yōu)點:提供個性化設(shè)置、單點登錄、內(nèi)容聚合、信息發(fā)布、權(quán)限管理等功能,支持各種信息數(shù)據(jù)來源,并將這些數(shù)據(jù)信息放在網(wǎng)頁中組合而成,提供個性化的內(nèi)容定制,不同權(quán)限的瀏覽者能夠瀏覽不同的信息內(nèi)容等。
在Portal概念提出后,許多大公司都推出了各自的Portal Server:
BEA. WebLogic Portal 8.1 SP4: IBM WebSphere Portal 5.1: SunOne Portal 2005Q1等。而且每一個大公司都有各自的標(biāo)準(zhǔn)。
Portlet在Sun公司未推出標(biāo)準(zhǔn)前,各家公司的標(biāo)準(zhǔn)都不兼容,于是,類似JavaTM Servlet 2.4 Specification (JSR154)標(biāo)準(zhǔn)。 SUN推出了兩個關(guān)于Portlets標(biāo)準(zhǔn)。
a) Java Portlet Specification 1.0 (JSR168), 2003年10月27日
b) Web Services for Remote Portlets 1.0, 2003年9月3日
節(jié)選自: Java Portlet Specification 1.0 (JSR168)
Portlets are web components -like Servlets- specifically designed to be aggregated in the context of a composite page.
Usually, many Portlets are invoked to in the single request of a Portal page. Each Portlet produces a fragment of markup that it s combined with the markup of other Portlets, all within the Portal page markup
其他免費Java 的portal Server: JBoss Portal 2.0, Apache Jetspeed 2, Apache Pluto 1.0.1
a) JAVA Protal Server
以下是Spring Portlet Support下的pluto-spring-portlet-sample.zip 運行在Pluto后的效果:
b) MicroSoft Protal Server
b.1 Sharepoint Protal Server 2003/2005
總結(jié): MS的protal概念與SUN提出的protal概念需要用意一樣都為了整合Web應(yīng)用,但沒有統(tǒng)
一的標(biāo)準(zhǔn)。
兩者開發(fā)出來的應(yīng)用不能由各自的Protal Server互相運行。
a) 需要用Spring protlet MVC 需要一個Protal Server ,需要確定選用哪個Protal Server
b) 選用Protal Server的原因,是因為要和.net開發(fā)的protlet應(yīng)用集成?還是打算和以后的java開發(fā)的prolet應(yīng)用集成?
前者未經(jīng)過測試,成功岸例也不多。后者因為有JSR168規(guī)范,所有support此規(guī)范的Protal Server都應(yīng)該支持。
The Spring Portlet MVC project provides a complete MVC layer for the JSR-168 Portlet API in the same way that Spring Web MVC does for the Servlet API.
換句話說:
Spring Web MVC 的項目 在 Web Server上運行。
Spring protlet MVC 的項目 在 Protal Server上運行。
問題:
Spring Web MVC寫好的項目,經(jīng)過a few改動(改繼承類和protlet.xml,和Spring-Applicationcontext.xml)就可以發(fā)布在Java Protal server上。
posted @ 2005-10-28 18:01 Vikings 閱讀(1005) | 評論 (0) | 編輯 收藏