锘??xml version="1.0" encoding="utf-8" standalone="yes"?>在线综合欧美,精品福利网址导航,亚洲三级一区http://www.aygfsteel.com/patterns/category/8265.html紱葷鍘熶笂鑽夛紝涓宀佷竴鏋崳銆傞噹鐏儳涓嶅敖錛屾槬椋庡惞鍙堢敓銆? zh-cnTue, 27 Feb 2007 10:25:06 GMTTue, 27 Feb 2007 10:25:06 GMT60灝嗗簲鐢ㄤ粠Tomcat5涓婄Щ妞嶅埌Websphere6涓?/title><link>http://www.aygfsteel.com/patterns/archive/2006/03/08/tomcat5towebshpere6.html</link><dc:creator>閲庤崏</dc:creator><author>閲庤崏</author><pubDate>Wed, 08 Mar 2006 13:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/patterns/archive/2006/03/08/tomcat5towebshpere6.html</guid><wfw:comment>http://www.aygfsteel.com/patterns/comments/34356.html</wfw:comment><comments>http://www.aygfsteel.com/patterns/archive/2006/03/08/tomcat5towebshpere6.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/patterns/comments/commentRss/34356.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/patterns/services/trackbacks/34356.html</trackback:ping><description><![CDATA[ <font size="2">鏈榪戝仛浜?jiǎn)涓涓」鐩紝璧峰垵涓轟簡(jiǎn)蹇熻皟璇曪紝浣跨敤鐨勬槸Tomcat5錛屼絾鐢ㄦ埛鐨勫疄闄呯幆澧冩槸websphere6錛屽嚑緇忓懆鎶橈紝緇堜簬灝嗗簲鐢ㄦ墦鎴恊ar鍖咃紝鍙戝竷涓婂幓浜?jiǎn)銆傚湪榪欏皢濡備綍浣跨敤websphere5搴旂敤鎵撳寘宸ュ叿銆佸浣曞緩绔媤ebsphere6鏁版嵁搴撹繛鎺ユ睜浠ュ強(qiáng)濡備綍鍙戝竷搴旂敤鏁寸悊鍑烘潵錛屼互渚涙湁鍚屾牱闇姹傜殑鏈嬪弸鍙傝冦?br />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<br />鐐瑰嚮濡備笅榪炴帴涓嬭澆錛?br />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)</font> <a href="/Files/patterns/Tomcat5ToWebsphere6Doc.rar"> <font size="2">灝唚eb搴旂敤浠嶵omcat5涓婄Щ妞嶅埌Websphere6涓婏紙word錛?/font> </a> <br /> <img src ="http://www.aygfsteel.com/patterns/aggbug/34356.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/patterns/" target="_blank">閲庤崏</a> 2006-03-08 21:16 <a href="http://www.aygfsteel.com/patterns/archive/2006/03/08/tomcat5towebshpere6.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jfreechart鍦╳ebsphere6涓婄殑閮ㄧ講闂http://www.aygfsteel.com/patterns/archive/2006/03/08/jfreechartAtWebsphere6_80.html閲庤崏閲庤崏Wed, 08 Mar 2006 13:14:00 GMThttp://www.aygfsteel.com/patterns/archive/2006/03/08/jfreechartAtWebsphere6_80.htmlhttp://www.aygfsteel.com/patterns/comments/34355.htmlhttp://www.aygfsteel.com/patterns/archive/2006/03/08/jfreechartAtWebsphere6_80.html#Feedback0http://www.aygfsteel.com/patterns/comments/commentRss/34355.htmlhttp://www.aygfsteel.com/patterns/services/trackbacks/34355.html鐜錛?/STRONG>
   1銆亀ebsphere6錛屼嬌鐢ㄦ彃浠舵ā寮忥紝閫氳繃websphere鐨刪ttpserver鐨?0绔彛璁塊棶鍏秊2eeserver銆?BR>   2銆乯feechart錛屽父瑙勪嬌鐢ㄣ?BR>
闂錛?BR>   jfeechart鍥劇墖鐢熸垚娌℃湁闂錛屽氨鏄浘鐗囨樉紺轟笉浜?jiǎn)锛岃〃鐜颁负宸︿笂瑙掓湁涓涓弶銆?BR>
瑙e喅鏂規(guī)硶錛?/STRONG>
       涓嶈浣跨敤鎻掍歡妯″紡錛岄氳繃websphere鐨刪ttpserver璁塊棶鍏秊2eeserver錛屽皢j2eeserver鐨勭鍙g洿鎺ヨ涓?0錛屽浘鐗囧氨鏄劇ず姝e父銆?BR>
鎬濊冿細(xì)
jfreechart鐨勫浘鐗囨樉紺烘柟娉曟槸錛?BR>


<%
String pieGraphURL = request.getContextPath() + "/DisplayChart?filename=" + piefilename;
%>



鍐嶇湅涓涓婦isplayChart璋冪敤鐨勬牳蹇?jī)婧愮爜锛?xì)


public static void sendTempFile(File file, HttpServletResponse response,
                                    String mimeType) throws IOException {

        if (file.exists()) {
            BufferedInputStream bis = new BufferedInputStream(
                new FileInputStream(file)
            );

            //  Set HTTP headers
            if (mimeType != null) {
                response.setHeader("Content-Type", mimeType);
            }
            response.setHeader("Content-Length", String.valueOf(file.length()));
            SimpleDateFormat sdf = new SimpleDateFormat(
                "EEE, dd MMM yyyy HH:mm:ss z"
            );
            sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
            response.setHeader(
                "Last-Modified", sdf.format(new Date(file.lastModified()))
            );

            BufferedOutputStream bos = new BufferedOutputStream(
                response.getOutputStream()
            );
            byte[] input = new byte[1024];
            boolean eof = false;
            while (!eof) {
                int length = bis.read(input);
                if (length == -1) {
                    eof = true;
                }
                else {
                    bos.write(input, 0, length);
                }
            }
            bos.flush();
            bis.close();
            bos.close();
        }
        else {
            throw new FileNotFoundException(file.getAbsolutePath());
        }
        return;
    }



鍙鍦╳eb欏甸潰涓婃樉紺烘椂鍒嗕袱姝ワ細(xì)
1銆佸垵濮嬪寲img瀹瑰櫒錛?BR>2銆佽皟鐢―isplayChart榪欎釜servlet灝嗗浘鐗囨暟鎹啓榪涙潵銆?BR>鍙槸鍦ㄨ蛋httpserver鏃剁浜屾涓嶄細(xì)璧蜂綔鐢ㄧ殑銆?BR>



閲庤崏 2006-03-08 21:14 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 莎车县| 科技| 成安县| 锡林郭勒盟| 南康市| 庆安县| 荣昌县| 平果县| 武山县| 陇川县| 红安县| 横峰县| 浦东新区| 财经| 贵州省| 扎赉特旗| 定西市| 临安市| 香格里拉县| 潜江市| 双鸭山市| 镇雄县| 平山县| 平南县| 岳普湖县| 嵊州市| 资兴市| 乌苏市| 兴安盟| 沈阳市| 肥东县| 泰州市| 利辛县| 霍林郭勒市| 光山县| 北安市| 和林格尔县| 泰兴市| 行唐县| 易门县| 无锡市|