亚洲国产精品久久丫,午夜影视日本亚洲欧洲精品一区,丰满亚洲大尺度无码无码专线 http://www.tkk7.com/Vencent/category/7000.html<!--bgsound src="http://www.tkk7.com/Files/Vencent/The%20Mass%20Era.zip" volume="10" loop="10"/--> <script type="text/javascript" src="http://shooter.cn/api/shteapi.js" charset='utf-8'></script> <link rel="stylesheet" type="text/css" />zh-cnTue, 15 Apr 2008 13:04:41 GMTTue, 15 Apr 2008 13:04:41 GMT60關(guān)于ChartDirector的中文問(wèn)題完美解決http://www.tkk7.com/Vencent/archive/2008/04/15/193201.htmlVincent.ChenVincent.ChenTue, 15 Apr 2008 12:06:00 GMThttp://www.tkk7.com/Vencent/archive/2008/04/15/193201.htmlhttp://www.tkk7.com/Vencent/comments/193201.htmlhttp://www.tkk7.com/Vencent/archive/2008/04/15/193201.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/193201.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/193201.htmlChartDirector是一個(gè)圖表工具,類似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ú)法解決。



Vincent.Chen 2008-04-15 20:06 發(fā)表評(píng)論
]]>
轉(zhuǎn):利用JFreeChart繪制股票K線圖完整解決方案http://www.tkk7.com/Vencent/archive/2008/02/02/179085.htmlVincent.ChenVincent.ChenSat, 02 Feb 2008 12:49:00 GMThttp://www.tkk7.com/Vencent/archive/2008/02/02/179085.htmlhttp://www.tkk7.com/Vencent/comments/179085.htmlhttp://www.tkk7.com/Vencent/archive/2008/02/02/179085.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/179085.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/179085.html閱讀全文

Vincent.Chen 2008-02-02 20:49 發(fā)表評(píng)論
]]>
JFreeChart庫(kù)包的簡(jiǎn)介【轉(zhuǎn)載】http://www.tkk7.com/Vencent/archive/2008/02/02/179084.htmlVincent.ChenVincent.ChenSat, 02 Feb 2008 12:41:00 GMThttp://www.tkk7.com/Vencent/archive/2008/02/02/179084.htmlhttp://www.tkk7.com/Vencent/comments/179084.htmlhttp://www.tkk7.com/Vencent/archive/2008/02/02/179084.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/179084.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/179084.html閱讀全文

Vincent.Chen 2008-02-02 20:41 發(fā)表評(píng)論
]]>
JFreeChart中文文檔【轉(zhuǎn)載】http://www.tkk7.com/Vencent/archive/2008/02/02/179082.htmlVincent.ChenVincent.ChenSat, 02 Feb 2008 12:34:00 GMThttp://www.tkk7.com/Vencent/archive/2008/02/02/179082.htmlhttp://www.tkk7.com/Vencent/comments/179082.htmlhttp://www.tkk7.com/Vencent/archive/2008/02/02/179082.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/179082.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/179082.html閱讀全文

Vincent.Chen 2008-02-02 20:34 發(fā)表評(píng)論
]]>
AppFuse2 建立新project命令http://www.tkk7.com/Vencent/archive/2007/07/18/131163.htmlVincent.ChenVincent.ChenWed, 18 Jul 2007 14:58:00 GMThttp://www.tkk7.com/Vencent/archive/2007/07/18/131163.htmlhttp://www.tkk7.com/Vencent/comments/131163.htmlhttp://www.tkk7.com/Vencent/archive/2007/07/18/131163.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/131163.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/131163.html
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


Vincent.Chen 2007-07-18 22:58 發(fā)表評(píng)論
]]>
候捷談反射機(jī)制(轉(zhuǎn))http://www.tkk7.com/Vencent/archive/2007/07/02/127710.htmlVincent.ChenVincent.ChenMon, 02 Jul 2007 15:58:00 GMThttp://www.tkk7.com/Vencent/archive/2007/07/02/127710.htmlhttp://www.tkk7.com/Vencent/comments/127710.htmlhttp://www.tkk7.com/Vencent/archive/2007/07/02/127710.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/127710.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/127710.html閱讀全文

Vincent.Chen 2007-07-02 23:58 發(fā)表評(píng)論
]]>
(轉(zhuǎn))Polymorphism(多態(tài)性)很X,大家注意少兒不宜http://www.tkk7.com/Vencent/archive/2007/07/02/127709.htmlVincent.ChenVincent.ChenMon, 02 Jul 2007 15:54:00 GMThttp://www.tkk7.com/Vencent/archive/2007/07/02/127709.htmlhttp://www.tkk7.com/Vencent/comments/127709.htmlhttp://www.tkk7.com/Vencent/archive/2007/07/02/127709.html#Feedback1http://www.tkk7.com/Vencent/comments/commentRss/127709.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/127709.html閱讀全文

Vincent.Chen 2007-07-02 23:54 發(fā)表評(píng)論
]]>
關(guān)于ResultSet的關(guān)閉問(wèn)題http://www.tkk7.com/Vencent/archive/2006/03/15/35497.htmlVincent.ChenVincent.ChenWed, 15 Mar 2006 15:15:00 GMThttp://www.tkk7.com/Vencent/archive/2006/03/15/35497.htmlhttp://www.tkk7.com/Vencent/comments/35497.htmlhttp://www.tkk7.com/Vencent/archive/2006/03/15/35497.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/35497.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/35497.html在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ě)出健壯的程序,這些處理是必須的。



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


Vincent.Chen 2006-03-15 23:15 發(fā)表評(píng)論
]]>
<a href='http://www.tkk7.com/Vencent/articles/30510.html'>GOOGLE挑戰(zhàn)賽練習(xí)題1及答案(200分) </a>http://www.tkk7.com/Vencent/archive/2006/02/14/30693.htmlVincent.ChenVincent.ChenTue, 14 Feb 2006 13:23:00 GMThttp://www.tkk7.com/Vencent/archive/2006/02/14/30693.htmlhttp://www.tkk7.com/Vencent/comments/30693.htmlhttp://www.tkk7.com/Vencent/archive/2006/02/14/30693.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/30693.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/30693.html

Vincent.Chen 2006-02-14 21:23 發(fā)表評(píng)論
]]>
<a href='http://www.tkk7.com/Vencent/articles/30491.html'>學(xué)習(xí)Log4J筆記(轉(zhuǎn))</a>http://www.tkk7.com/Vencent/archive/2006/02/13/30492.htmlVincent.ChenVincent.ChenMon, 13 Feb 2006 10:19:00 GMThttp://www.tkk7.com/Vencent/archive/2006/02/13/30492.htmlhttp://www.tkk7.com/Vencent/comments/30492.htmlhttp://www.tkk7.com/Vencent/archive/2006/02/13/30492.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/30492.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/30492.html

Vincent.Chen 2006-02-13 18:19 發(fā)表評(píng)論
]]>
<a href='http://www.tkk7.com/Vencent/articles/30344.html'>Velocity用戶手冊(cè)---中文版</a >http://www.tkk7.com/Vencent/archive/2006/02/12/30345.htmlVincent.ChenVincent.ChenSun, 12 Feb 2006 04:59:00 GMThttp://www.tkk7.com/Vencent/archive/2006/02/12/30345.htmlhttp://www.tkk7.com/Vencent/comments/30345.htmlhttp://www.tkk7.com/Vencent/archive/2006/02/12/30345.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/30345.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/30345.html

Vincent.Chen 2006-02-12 12:59 發(fā)表評(píng)論
]]>
<a href='http://www.tkk7.com/Vencent/articles/30328.html'>在網(wǎng)上看到華為java的面試題</a>http://www.tkk7.com/Vencent/archive/2006/02/12/30329.htmlVincent.ChenVincent.ChenSun, 12 Feb 2006 03:10:00 GMThttp://www.tkk7.com/Vencent/archive/2006/02/12/30329.htmlhttp://www.tkk7.com/Vencent/comments/30329.htmlhttp://www.tkk7.com/Vencent/archive/2006/02/12/30329.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/30329.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/30329.html

Vincent.Chen 2006-02-12 11:10 發(fā)表評(píng)論
]]>
<a href='http://www.tkk7.com/Vencent/articles/30302.html'>竹筍炒肉之Junit學(xué)習(xí)筆記(轉(zhuǎn))</a>http://www.tkk7.com/Vencent/archive/2006/02/12/30323.htmlVincent.ChenVincent.ChenSun, 12 Feb 2006 02:53:00 GMThttp://www.tkk7.com/Vencent/archive/2006/02/12/30323.htmlhttp://www.tkk7.com/Vencent/comments/30323.htmlhttp://www.tkk7.com/Vencent/archive/2006/02/12/30323.html#Feedback0http://www.tkk7.com/Vencent/comments/commentRss/30323.htmlhttp://www.tkk7.com/Vencent/services/trackbacks/30323.html
查看全文




Vincent.Chen 2006-02-12 10:53 發(fā)表評(píng)論
]]>
主站蜘蛛池模板: 亚洲人片在线观看天堂无码| 亚洲国产视频一区| 亚洲AV无码专区在线观看成人| 成人黄色免费网址| 亚洲天堂中文字幕在线观看| 亚洲人成免费电影| 亚洲av产在线精品亚洲第一站| 无码国产精品一区二区免费式直播 | 亚洲国产精品一区二区久久| 永久免费A∨片在线观看| 亚洲AV无码成人专区片在线观看 | 久久精品国产免费观看| 337p日本欧洲亚洲大胆艺术| 在线免费观看亚洲| 亚洲国产精品综合久久2007| 免费视频专区一国产盗摄| 亚洲乱码一二三四区乱码| 永久免费av无码网站大全| 无套内谢孕妇毛片免费看看| 久久久久亚洲AV成人网人人软件| 在线免费观看伊人三级电影| 亚洲自偷自拍另类12p| 在线观看成人免费视频不卡| 亚洲综合激情五月色一区| 免费一级特黄特色大片在线| 国产精品免费久久久久电影网| 亚洲精品亚洲人成在线观看| 91香蕉在线观看免费高清| 中文字幕亚洲综合久久综合| 免费在线观看日韩| 国产成人AV片无码免费| 亚洲一区免费在线观看| 午夜亚洲av永久无码精品| 国产一级在线免费观看| 亚洲狠狠狠一区二区三区| 日韩在线免费电影| A国产一区二区免费入口| 亚洲欧洲日产国码二区首页| 日韩一级视频免费观看| 免费观看一区二区三区| 亚洲91精品麻豆国产系列在线|