<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Vincent.Chan‘s Blog

    常用鏈接

    統(tǒng)計(jì)

    積分與排名

    網(wǎng)站

    最新評(píng)論

    置頂隨筆 #

    [置頂]DVDrip、HDrip、BDrip等 知識(shí)資料匯總

         摘要:   閱讀全文

    posted @ 2008-01-19 04:08 Vincent.Chen 閱讀(593) | 評(píng)論 (0)編輯 收藏

    2010年4月27日 #

    博客轉(zhuǎn)移

    本博客決定轉(zhuǎn)移,請(qǐng)?jiān)L問(wèn)新地址 http://vincentchan.cn/
    另外如果有人有blogjava轉(zhuǎn)wordpress的博客搬家工具,可以共享一下~~

    posted @ 2010-04-27 19:15 Vincent.Chen 閱讀(244) | 評(píng)論 (0)編輯 收藏

    2009年4月30日 #

    eclipse polish debug error

    I have seen something like that if the option "Suspend execution on uncaught exceptions" in windows/preferences/Java/Debug is checked. It must be unchecked to get the debugger to work.

    posted @ 2009-04-30 09:34 Vincent.Chen 閱讀(199) | 評(píng)論 (0)編輯 收藏

    2009年4月23日 #

    諾基亞軟件

    電源文件
    漢化

    posted @ 2009-04-23 18:55 Vincent.Chen 閱讀(184) | 評(píng)論 (0)編輯 收藏

    2009年3月23日 #

    Axis客戶(hù)端調(diào)service產(chǎn)生java.lang.reflect.InvocationTargetException錯(cuò)誤

    Tomcat+Axis客戶(hù)端調(diào)service產(chǎn)生java.lang.reflect.InvocationTargetException錯(cuò)誤

    產(chǎn)生這個(gè)文題的原因是

    1.server端發(fā)布的webservice程序中調(diào)用了某些jar或class,而服務(wù)器上卻沒(méi)有,解決方法是把jar或class拷貝到tomcat\common\lib或虛擬目錄的web-inf\lib目錄下
    2.調(diào)用的方法出現(xiàn)了特殊的exception.但是你服務(wù)器上面沒(méi)有捕獲到

     我一開(kāi)始用jbuilder開(kāi)發(fā)程序的時(shí)候,service端引用了 一些I2的jar,單調(diào)service的程序總是成功,一到Client端調(diào)用service時(shí),service端就報(bào)這個(gè)錯(cuò)誤,于是百度的一把,無(wú)意間 看到了CSDN上的一位高手的解釋?zhuān)谑怯悬c(diǎn)恍然大悟,因?yàn)槲以趈builder中設(shè)置了環(huán)境變量,調(diào)式才沒(méi)問(wèn)題,而部署的服務(wù)器上沒(méi)有這些 jar,service執(zhí)行的時(shí)候找不到從而報(bào)錯(cuò),而且在我的虛擬目錄下的lib目錄中又新建了個(gè)文件夾,把jar放在新建的文件夾下,估計(jì)這也是問(wèn)題之 一,后來(lái)我把用到了jar全部考到tomcat\common\lib下,用Client去調(diào)service時(shí)終于不報(bào)錯(cuò)了,看來(lái)這文件還不能亂放阿 (jar一定要放在lib目錄下俄,汗那)

    posted @ 2009-03-23 09:09 Vincent.Chen 閱讀(3481) | 評(píng)論 (0)編輯 收藏

    2009年3月14日 #

    Eclipse + MinGW + Qt開(kāi)發(fā)環(huán)境設(shè)置

         摘要:   閱讀全文

    posted @ 2009-03-14 13:34 Vincent.Chen 閱讀(402) | 評(píng)論 (0)編輯 收藏

    2008年7月4日 #

    安妮寶貝經(jīng)典語(yǔ)錄

         摘要:
    ●我喜歡寂寞的人,因?yàn)樗麄兩屏?
    ●傷口是別人給予的恥辱,自己堅(jiān)持的幻覺(jué)。
    ●某天如果我覺(jué)得不再愛(ài)你了,我就不會(huì)再感覺(jué)寂寞。
    ●我不相信愛(ài)情,但我可以接受它。
    ●當(dāng)一個(gè)女子在看天空的時(shí)候,她并不想尋找什么。她只是寂寞。
      閱讀全文

    posted @ 2008-07-04 23:42 Vincent.Chen 閱讀(416) | 評(píng)論 (0)編輯 收藏

    2008年7月1日 #

    最近在網(wǎng)上看到一段話

    女孩子二十歲左右是她最美麗的年華
    這時(shí)她心地最善良,有點(diǎn)成熟,又有點(diǎn)孩子氣

    男孩子二十歲左右是他最黯淡的日子,這時(shí)他什么都沒(méi)有,不能獨(dú)立卻又不想依賴(lài),掙扎著
    彷徨著,尋找著自己的位置。
    所以,
    如果一個(gè)男孩子在他二十歲左右的時(shí)候遇到一個(gè)年紀(jì)相當(dāng)?shù)呐⒆樱且欢ㄒ湎驗(yàn)?br /> 這個(gè)女孩子用自己最美麗的年華陪他走過(guò)了最黯淡的日子!女孩只要陪他走過(guò),女孩子將永
    遠(yuǎn)幸福下去……

    posted @ 2008-07-01 00:34 Vincent.Chen 閱讀(252) | 評(píng)論 (0)編輯 收藏

    2008年6月24日 #

    轉(zhuǎn):被孤獨(dú)詛咒了的青春

    那天大姨來(lái)看我,一起吃頓飯,又把我循循教導(dǎo)一番,給我舉了表姐單位幾位的大齡女青年
    的例子,告誡我一定不要眼光太高,哪里有十全十美的人云云。

    我只能苦笑,哪里有什么高標(biāo)準(zhǔn)......

    以前很奇怪,為什么一說(shuō)到這個(gè)事情,大家都會(huì)不約而同的認(rèn)定是我眼光高,太挑剔了。后
    來(lái)想明白,可能也是大家的仁慈。那么若不是眼光高,那又是為什么呢?他們很奇怪,我也
    很奇怪。

          前言:我知道造成這樣孤獨(dú)的生活是我的錯(cuò),但不知道自己錯(cuò)在哪里,所以只好認(rèn)為
    是被孤獨(dú)詛咒了。

    年少時(shí)曾經(jīng)暗戀過(guò)的人,早已過(guò)上王子公主的幸福生活;

    年輕時(shí)深刻愛(ài)上的人,早已絕塵而去;

    多年來(lái)默默關(guān)懷自己的人,實(shí)在是不可以執(zhí)手相望;

    生命中匆匆過(guò)往的形形色色的男子,終究也是路人;

    于是這最年輕的年華,很是奇怪的,真的被孤獨(dú)詛咒了一樣。


    或許上帝開(kāi)了個(gè)不小的玩笑,一個(gè)骨子里自視甚高的女子,一個(gè)曾經(jīng)對(duì)感情充滿(mǎn)無(wú)限幻想的
    人,卻在現(xiàn)實(shí)生活中不得不抬頭面對(duì)這樣慘淡而落寞的情路。從那個(gè)閉塞的小縣城,一步步
    走到今天,從來(lái)都相信通過(guò)自己的努力可以改變命運(yùn),但是這尷尬的情境,終于讓我懂得,
    有些事情確實(shí)不能如自己所計(jì)劃的實(shí)現(xiàn)。

    這已是我在大學(xué)里度過(guò)的第七個(gè)年頭,多年做學(xué)生的生涯終究要落下帷幕。身邊的人你來(lái)我
    往,變的總是別人的生活,不變的總是孤獨(dú)的自己。變的總是不同的生活軌跡,從家鄉(xiāng)的小
    縣城,到大連,從大連到京城,從京城到上海,不變的總是漫長(zhǎng)旅途中孤獨(dú)的身影。

    2006年的情人節(jié),境況依舊如往。這個(gè)城市有千萬(wàn)朵玫瑰綻放,沒(méi)有一朵是為我而開(kāi)。剛剛
    告別溫暖的家回校,中午時(shí)收到拒電,一份最為盼望的工作希望破滅,晚上去冷清的食堂吃
    了份冰冷的炒面。到了辦公室,空無(wú)一人,一種強(qiáng)烈的徹底的失敗感突然襲來(lái),蔓延全身,
    感到了人生走到毫無(wú)希望和樂(lè)趣的地步,終于支撐不住,趴在桌子上,大哭一場(chǎng)。

    彷佛是被一張無(wú)形的巨網(wǎng)罩住,我不想過(guò)這樣的生活,可是為什么我總也擺脫不掉!


    將馬思洛的需求層次論用來(lái)解釋愛(ài)情,給朋友講的頭頭是道,被她評(píng)為最經(jīng)典和創(chuàng)意的愛(ài)情
    理論。我曾裝作老道的樣子,告誡她我們一定要尋找到滿(mǎn)足自己最高層次需求的一份感情,
    而如今的自己已再也不敢有此奢望。只求有一人,滿(mǎn)足自己安全的需要,交往的需要,擺脫
    漂泊感和恐懼感的需要。

    人在旅途時(shí),往往更加脆弱。每每奔波在路上,一個(gè)人趕車(chē),候車(chē),坐車(chē),慢慢長(zhǎng)途中,看
    著身邊的旅伴們, 年輕的,年老的,互相照顧,我甚至覺(jué)得哪怕是隨便怎么樣一個(gè)人,陪
    在我身邊,為我拉個(gè)箱子,為我泡一碗面,或者為我掖掖被角,都能讓我萬(wàn)分感動(dòng)。

    這次去上海,住華東理工我高中老友之女朋友宿舍內(nèi)。同屋另外一個(gè)女孩子,端莊秀氣,同
    樣借居于彼。考研、上班,與在上研的男友一起奮斗,薪酬甚為微薄,工作十分忙碌,生活
    極為艱辛。每日眾人酣睡之際,她已起身趕車(chē),顛簸一個(gè)多小時(shí),在郊區(qū)一小診所作護(hù)士,
    每晚下班,要看書(shū)復(fù)習(xí)。臨近大考幾個(gè)月,男友每晚都陪她在自習(xí)室復(fù)習(xí)至深夜,再送她回
    來(lái)。

    然而造化弄人,連考兩年未果。我去當(dāng)晚,正逢女孩得知考研分?jǐn)?shù),難受的不知道怎么好。
    男友極為溫和,陪了她一整天,勸慰她不是她的原因,是自己查分的手太臭。兩人在外面站
    半天,回來(lái)時(shí)女孩本打算買(mǎi)個(gè)土家燒餅給男友吃,又覺(jué)得自己考的丟人,對(duì)不住他,不好意
    思再對(duì)他好,一扭頭跑了回來(lái)。

    我是躺在床上,默默地聽(tīng)這個(gè)女孩子的敘述,想象2005年冬天的上海,房間里沒(méi)有一絲暖意
    ,那樣的生活.......這樣相濡以沫的愛(ài)情,我只是在幻想中有過(guò)。我知道女孩看我的眼神
    里,充滿(mǎn)了無(wú)限的羨慕,羨慕我的學(xué)業(yè)、前途如此一帆風(fēng)順,可是她不知道我對(duì)她的羨慕,
    每晚下班Tail看書(shū)復(fù)習(xí)。臨近大考幾個(gè)月,男友每晚都陪她在自習(xí)室復(fù)習(xí)至深夜,再送她回
    來(lái)。

    然而造化弄人,連考兩年未果。我去當(dāng)晚,正逢女孩得知考研分?jǐn)?shù),難受的不知道怎么好。
    男友極為溫和,陪了她一整天,勸慰她不是她的原因,是自己查分的手太臭。兩人在外面站
    半天,回來(lái)時(shí)女孩本打算買(mǎi)個(gè)土家燒餅給男友吃,又覺(jué)得自己考的丟人,對(duì)不住他,不好意
    思再對(duì)他好,一扭頭跑了回來(lái)。

    我是躺在床上,默默地聽(tīng)這個(gè)女孩子的敘述,想象2005年冬天的上海,房間里沒(méi)有一絲暖意
    ,那樣的生活.......這樣相濡以沫的愛(ài)情,我只是在幻想中有過(guò)。我知道女孩看我的眼神
    里,充滿(mǎn)了無(wú)限的羨慕,羨慕我的學(xué)業(yè)、前途如此一帆風(fēng)順,可是她不知道我對(duì)她的羨慕,
    羨慕她如此幸運(yùn),有這樣一個(gè)心地純正的、這樣真心愛(ài)她的人。


    日子一天天總會(huì)過(guò)去,若不是立志獨(dú)身,將來(lái)總會(huì)遇見(jiàn)某個(gè)人,與之結(jié)婚,一起生活,幸福
    或者不幸福;若不出大的意外,將來(lái)總會(huì)有更多的錢(qián),房子,車(chē)子,總歸會(huì)有這樣形式上完
    整的婚姻、丈夫,表面上熱鬧的生活。anyway,以后的生活與現(xiàn)在無(wú)關(guān)。但是這被孤獨(dú)詛咒
    了的一個(gè)女子最美好的青春歲月,會(huì)成為我一生中永遠(yuǎn)揮之不去的遺憾

    posted @ 2008-06-24 00:13 Vincent.Chen 閱讀(232) | 評(píng)論 (0)編輯 收藏

    2008年4月15日 #

    關(guān)于ChartDirector的中文問(wèn)題完美解決

    ChartDirector是一個(gè)圖表工具,類(lèi)似JFreeChart,只是它是商業(yè)軟件。那為何還要用它?因?yàn)樗?huà)出來(lái)的圖表比JFreeChart精細(xì),好看得多。這好像是一個(gè)香港公司開(kāi)發(fā)的?!http://www.advsofteng.com/
    它文檔上說(shuō)了,它內(nèi)部采用UNICODE編碼。所以應(yīng)該不會(huì)有中文[非英文體系]亂碼問(wèn)題。但是實(shí)際好像還是會(huì)出現(xiàn)亂碼,網(wǎng)上搜索了一通大多解決的不是很徹底,根據(jù)自己試驗(yàn)解決如下:
    1、
    JSP中增加:
    <%@ page contentType="text/html; charset=GB2312"%>
    //
    此處的charset要注意設(shè)置,也可設(shè)置成其他支持中文的編碼,然后注意保存的jsp文件要保存成相應(yīng)編碼
    //很多亂碼皆由于保存的編碼和這里聲明的編碼不一致導(dǎo)致[用EmEditor等工具保存時(shí)可以選擇編碼]
    //這里不聲明默認(rèn)采用ISO-8859-1編碼讀取,所以有網(wǎng)友說(shuō)需要將中文編碼為ISO-8859-1即:
    //new String("中文".getBytes("ISO-8859-1"))

    2、設(shè)置Chart默認(rèn)字體:

    BaseChart.setDefaultFonts("simsun.ttc","simsun.ttc","simsun.ttc","simsun.ttc");

    如果在非windows系統(tǒng)下使用,可以拷貝windows系統(tǒng)下的simsun.ttc到classes路徑下,重啟服務(wù)器即可顯示中文

    然后其他的一些字體大小等都要一個(gè)個(gè)設(shè)置了,因?yàn)槟J(rèn)英文字體大小顯示中文不好看

    這樣就可以很完美顯示中文了。比起JFreeChart來(lái)好多了,JFreeChart雖然也可以解決中文顯示問(wèn)題,但是中文字體發(fā)虛,好像目前無(wú)法解決。

    posted @ 2008-04-15 20:06 Vincent.Chen 閱讀(5401) | 評(píng)論 (5)編輯 收藏

    2008年4月12日 #

    Topsite

         摘要:   閱讀全文

    posted @ 2008-04-12 09:28 Vincent.Chen 閱讀(390) | 評(píng)論 (0)編輯 收藏

    WareZ

         摘要:   閱讀全文

    posted @ 2008-04-12 09:28 Vincent.Chen 閱讀(482) | 評(píng)論 (0)編輯 收藏

    WAREZ無(wú)形帝國(guó)

         摘要:   閱讀全文

    posted @ 2008-04-12 09:25 Vincent.Chen 閱讀(233) | 評(píng)論 (0)編輯 收藏

    WareZ與0Day的故事- -

         摘要:   閱讀全文

    posted @ 2008-04-12 09:21 Vincent.Chen 閱讀(528) | 評(píng)論 (0)編輯 收藏

    2008年4月2日 #

    在windows上用源代碼編譯安裝MPlayer【轉(zhuǎn)載】

         摘要:   閱讀全文

    posted @ 2008-04-02 21:38 Vincent.Chen 閱讀(4224) | 評(píng)論 (0)編輯 收藏

    2008年2月2日 #

    轉(zhuǎn):利用JFreeChart繪制股票K線圖完整解決方案

         摘要:   閱讀全文

    posted @ 2008-02-02 20:49 Vincent.Chen 閱讀(3402) | 評(píng)論 (0)編輯 收藏

    JFreeChart庫(kù)包的簡(jiǎn)介【轉(zhuǎn)載】

         摘要:   閱讀全文

    posted @ 2008-02-02 20:41 Vincent.Chen 閱讀(408) | 評(píng)論 (0)編輯 收藏

    JFreeChart中文文檔【轉(zhuǎn)載】

         摘要:   閱讀全文

    posted @ 2008-02-02 20:34 Vincent.Chen 閱讀(845) | 評(píng)論 (0)編輯 收藏

    2008年1月20日 #

    [轉(zhuǎn)載]個(gè)人對(duì)400余部影片的觀后感(純主觀)

         摘要:   閱讀全文

    posted @ 2008-01-20 22:01 Vincent.Chen 閱讀(36465) | 評(píng)論 (17)編輯 收藏

    2008年1月19日 #

    DVDrip、HDrip、BDrip等 知識(shí)資料匯總

         摘要:   閱讀全文

    posted @ 2008-01-19 04:08 Vincent.Chen 閱讀(593) | 評(píng)論 (0)編輯 收藏

    2007年7月18日 #

    AppFuse2 建立新project命令

    ArchetypeCommand
    JSF Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-tapestry -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    JSF Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-tapestry -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Core
    (backend only)
    mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-core -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject

    posted @ 2007-07-18 22:58 Vincent.Chen 閱讀(1022) | 評(píng)論 (0)編輯 收藏

    2007年7月2日 #

    候捷談反射機(jī)制(轉(zhuǎn))

         摘要: Reflection 是Java被視為動(dòng)態(tài)(或準(zhǔn)動(dòng)態(tài))語(yǔ)言的一個(gè)關(guān)鍵性質(zhì)。這個(gè)機(jī)制允許程序在運(yùn)行時(shí)透過(guò)Reflection APIs取得任何一個(gè)已知名稱(chēng)的class的內(nèi)部信息,包括其modifiers(諸如public, static 等等)、superclass(例如Object)、實(shí)現(xiàn)之interfaces(例如Cloneable),也包括fields和methods的所有信息,并可于運(yùn)行時(shí)改變fields內(nèi)容或喚起methods。本文借由實(shí)例,大面積示范Reflection APIs。  閱讀全文

    posted @ 2007-07-02 23:58 Vincent.Chen 閱讀(778) | 評(píng)論 (0)編輯 收藏

    (轉(zhuǎn))Polymorphism(多態(tài)性)很X,大家注意少兒不宜

         摘要: Polymorphism shouldn't be a new concept to anybody. You deal with it every day in the real world. There's more than one class of cat to skin, but you skin 'em the same way, even if the specific instance is completely new to you. Let's say for example you want to fuck a hole. You fuck all holes the same. You don't care if that hole happens to be a mouth, an ass, or a pussy, you're gonna fuck it the same way regardless. However, the mouth, pussy, or ass may respond differently to the fucking.  閱讀全文

    posted @ 2007-07-02 23:54 Vincent.Chen 閱讀(2101) | 評(píng)論 (1)編輯 收藏

    2007年6月29日 #

    Eclipse Europa發(fā)布。。。

    Eclipse Europa is the annual release of Eclipse projects. Like last year’s Callisto release, the Europa release is a coordinated release of different Eclipse project teams. This year, the annual release includes 21 projects. By releasing these projects at the same time, the goal is to eliminate uncertainty about version compatibility and make it easier to incorporate multiple projects into your environment.

    While Europa is about the simultaneous release of twenty one projects, it is not a unification of the projects - each project remains a separate open source project operating with its own project leadership, its own committers, and its own project plan.

     

    posted @ 2007-06-29 00:19 Vincent.Chen 閱讀(557) | 評(píng)論 (0)編輯 收藏

    2007年6月7日 #

    Look'N'Stop規(guī)則包

    確實(shí)很強(qiáng)大,提供網(wǎng)上的規(guī)則包下載
    Lns規(guī)則20060614.rar
    wifi_secure

    posted @ 2007-06-07 00:01 Vincent.Chen 閱讀(4573) | 評(píng)論 (1)編輯 收藏

    2006年6月4日 #

    WebWork學(xué)習(xí)小記

    1、集成各種view
    推薦直接使用 result type 集成
    2、在集成freemarker時(shí)候需要注意:
    ? 1)<#assign ww=JspTaglibs["/WEB-INF/lib/webwork.tld"] />已不用因?yàn)?/span>webwork2.2的freemarker的tag支持是內(nèi)置的,
    ? 2)${wwUtil}已換成${webwork}
    3、使用sitemesh時(shí),一般推薦使用其PageFilter得擴(kuò)展。
    ? 1)Velocity:VelocityPageFilter
    ? 2)Freemarker:
    FreeMarkerPageFilter
    ? 3)ActionContextCleanUp的作用是告訴會(huì)通知FilterDispatcher在正確的時(shí)間清除請(qǐng)求.否則,ActionContext將在SiteMesh修飾器訪問(wèn)數(shù)據(jù)之前被清除.
    ? ∴ 使用的時(shí)候web.xml加聲明(順序很重要)
    <filter>
    <filter-name>webwork-cleanup</filter-name>
    <filter-class>
    ?? com.opensymphony.webwork.dispatcher.ActionContextCleanUp
    </filter-class>
    </filter>
    <filter>
    <filter-name>sitemesh</filter-name>
    <!--?此處的XXX為Velocity或FreeMarker,根據(jù)實(shí)際而定?-->
    <filter-class>com.opensymphony.webwork.sitemesh.XXXPageFilter</filter-class>
    </filter>
    <filter>
    <filter-name>webwork</filter-name>
    <filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
    </filter>

    <filter-mapping>
    <filter-name>webwork-cleanup</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>sitemesh</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>webwork</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>

    posted @ 2006-06-04 17:02 Vincent.Chen 閱讀(792) | 評(píng)論 (0)編輯 收藏

    2006年3月15日 #

    關(guān)于ResultSet的關(guān)閉問(wèn)題

    在Connection上調(diào)用close方法會(huì)關(guān)閉Statement和ResultSet嗎?

    級(jí)聯(lián)的關(guān)閉這聽(tīng)起來(lái)好像很有道理,而且在很多地方這樣做也是正確的,通常這樣寫(xiě)
    Connection con = getConnection();//getConnection is your method
    PreparedStatement ps = con.prepareStatement(sql);
    ResultSet rs = ps.executeQuery();
    ……
    ///rs.close();
    ///ps.close();
    con.close();  // NO!
    這 樣做的問(wèn)題在于Connection是個(gè)接口,它的close實(shí)現(xiàn)可能是多種多樣的。在普通情況下,你用 DriverManager.getConnection()得到一個(gè)Connection實(shí)例,調(diào)用它的close方法會(huì)關(guān)閉Statement和 ResultSet。但是在很多時(shí)候,你需要使用數(shù)據(jù)庫(kù)連接池,在連接池中的得到的Connection上調(diào)用close方法的時(shí)候,Connection可能并沒(méi)有被釋放,而是回到了連接池中。它以后可能被其它代碼取出來(lái)用。如果沒(méi)有釋放Statement和ResultSet,那么在Connection上沒(méi)有關(guān)閉的Statement和ResultSet可能會(huì)越來(lái)越多,那么……
    相反,我看到過(guò)這樣的說(shuō)法,有人把Connection關(guān)閉了,卻繼續(xù)使用ResultSet,認(rèn)為這樣是可以的,引發(fā)了激烈的討論,到底是怎么回事就不用我多說(shuō)了吧。

    所以我們必須很小心的釋放數(shù)據(jù)庫(kù)資源,下面的代碼片斷展示了這個(gè)過(guò)程

    Connection con = null;
    PreparedStatement ps = null;
    ResultSet rs = null;

    try {
        con = getConnection();//getConnection is your method
        ps = con.prepareStatement(sql);
        rs = ps.executeQuery();
        ///...........
    }
    catch (SQLException ex) {
        ///錯(cuò)誤處理
    }
    finally{
        try {
            if(ps!=null)
                ps.close();
        }
        catch (SQLException ex) {
            ///錯(cuò)誤處理
        }
        try{
            if(con!=null)
                con.close();
        }
        catch (SQLException ex) {
            ///錯(cuò)誤處理
        }
    }

    很麻煩是不是?但為了寫(xiě)出健壯的程序,這些處理是必須的。



    上面這東西講得真是精辟。

    posted @ 2006-03-15 23:15 Vincent.Chen 閱讀(4366) | 評(píng)論 (0)編輯 收藏

    2006年2月21日 #

    custom swt widgets, a list...(轉(zhuǎn))

    Everybody knows that the basic native widgets in swt lack a lot of flexibility and features. An approach to solve these shortcomings is to build custom swt widgets that do not rely on native widgets but are custom drawn - the same approach that swing took. A good example is KTable. The custom swt widgets - custom drawn and aggergated native ones - I currently know of are:

    • swtplus: http://swtplus.textdriven.com/
      • PGroup: an expandable group widget
      • PLink: an image hyperlink widget
    • Jaret: http://www.jaret.de/index.html
      • timebars: a widget showing intervals in a Gantt chart. The widget implementation is combined for JFC/Swing and the SWT toolkit. Learn more about the timebar widget and it's features here. LICENSE: GPL (commercial license available)
      • table: custom drawn table widget for the SWT toolkit.
      • datechooser: a widget for selecting dates in a classical drop down style featuring the display of holidays and other special days. Learn more
    • novocode: http://www.novocode.com/swt/
      • CustomSeparator: Instances of this class are non-native separator lines.
      • FramedComposite: Instances of this class are composites with a border around the contents.
      • Hyperlink: A hyperlink text label.
      • LiveSashForm: Like a regular SashForm, the LiveSashForm lays out its children in a Row or Column
      • SizeGrip: A non-native size grip which looks (and almost feels) like the native Win32 size grip.
    • Ktable: http://sourceforge.net/projects/ktable
      • KTable is a custom SWT table widget that provides a flexible grid of cells to display data. Since it is custom-drawn, it does not have the restrictions of the native SWT Table control.
    • Gface: http://gface.sourceforge.net/
      • Search Box - Searchable drop-down list
      • Date Picker - UI widget for visually picking a day in a month.
      • Date Combo - Combo box that opens the date picker to select date
      • Hour Selection Combo - CCombo to select hour in a day
    • SWT Dock: http://tweetypie.doc.ic.ac.uk/~jr200/twiki/bin/view/SWTDock/WebHome
      • Eclipse Docking API (2.1) ported back to Java from .NET.

    posted @ 2006-02-21 22:39 Vincent.Chen 閱讀(1088) | 評(píng)論 (0)編輯 收藏

    2006年2月14日 #

    一個(gè)高效簡(jiǎn)潔的Struts分頁(yè)方法

     

    posted @ 2006-02-14 21:27 Vincent.Chen 閱讀(584) | 評(píng)論 (0)編輯 收藏

    XSL 學(xué)習(xí)筆記 —— 中級(jí)篇

      

    posted @ 2006-02-14 21:26 Vincent.Chen 閱讀(507) | 評(píng)論 (0)編輯 收藏

    XSL 學(xué)習(xí)筆記 —— 基礎(chǔ)篇

     

    posted @ 2006-02-14 21:24 Vincent.Chen 閱讀(571) | 評(píng)論 (0)編輯 收藏

    僅列出標(biāo)題  下一頁(yè)
    主站蜘蛛池模板: 97av免费视频| 91精品视频免费| 久久亚洲中文字幕精品有坂深雪 | 91福利免费网站在线观看| 亚洲av无码国产精品夜色午夜| 69堂人成无码免费视频果冻传媒| 亚洲1区2区3区精华液| 亚洲午夜久久久影院伊人| 日本免费网站视频www区| 理论秋霞在线看免费| 麻豆亚洲AV永久无码精品久久| 免费观看的毛片手机视频| 精品熟女少妇aⅴ免费久久| 亚洲AV一二三区成人影片| 亚洲国产综合精品中文字幕| 18观看免费永久视频| 九九久久国产精品免费热6| 亚洲精品亚洲人成在线观看麻豆| 亚洲福利精品一区二区三区 | 日本不卡免费新一二三区| 黄网站色视频免费在线观看的a站最新| 亚洲成_人网站图片| 亚洲高清专区日韩精品| 国产免费爽爽视频免费可以看| 99精品视频在线视频免费观看| 青青视频免费在线| 亚洲乱码在线播放| 亚洲av无码av制服另类专区| 午夜国产大片免费观看| 国产免费女女脚奴视频网| 永久免费av无码入口国语片| 免费手机在线看片| 亚洲精品久久无码av片俺去也| 亚洲精品视频在线| 亚洲一区二区三区无码中文字幕| 日韩高清在线高清免费| 波多野结衣在线免费视频| 久久综合九色综合97免费下载 | 黄瓜视频高清在线看免费下载| 免费观看久久精彩视频| 久久久久久毛片免费看|