锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美日韩在线网站,亚洲欧美精品中文字幕在线,亚洲欧洲自拍偷拍http://www.aygfsteel.com/Todayfreeman/zh-cnWed, 18 Jun 2025 06:38:42 GMTWed, 18 Jun 2025 06:38:42 GMT60鏃犻http://www.aygfsteel.com/Todayfreeman/archive/2006/03/30/38272.html褰撶悊鎯蟲彃涓婄▼搴忕殑緲呰唨褰撶悊鎯蟲彃涓婄▼搴忕殑緲呰唨Thu, 30 Mar 2006 08:00:00 GMThttp://www.aygfsteel.com/Todayfreeman/archive/2006/03/30/38272.htmlhttp://www.aygfsteel.com/Todayfreeman/comments/38272.htmlhttp://www.aygfsteel.com/Todayfreeman/archive/2006/03/30/38272.html#Feedback0http://www.aygfsteel.com/Todayfreeman/comments/commentRss/38272.htmlhttp://www.aygfsteel.com/Todayfreeman/services/trackbacks/38272.html 榪欏嚑澶╀簨鎯呭お澶氾紝寮勭殑鏈変簺鐤叉儷錛屼笉榪囬櫎浜嗗伐浣滃師鍥犺窡濂沖弸鏆傛椂鍒嗗眳涓ゅ湴澶?鍏朵綑鐨勪篃閮芥槸濂戒簨灞呭.鐤叉儷涔嬩綑涔熷浜嗗嚑鍒嗗畨鎱般?br />宸茬粡涓騫村娌℃湁鍥炲浜嗐傚弽鍊掍笉瑙夊緱濡備綍錛屽掓槸涓棿鍥炶繃涓ゆ瀹剁殑濂沖弸,鍠滄鎷夋垜涓璧風洏綆?1鍥炲鐨勪簨瀹?璇村埌鍥炲,婊¤剳瀛愭兂鐨勬渶澶氱殑鑾繃浜?鍚?,浠庣緤鑲夊寘瀛愬埌鍑夌毊.鍐嶄粠鎿闈㈢毊鍒版懂緹婅倝錛屼袱涓漢緇忓父璇寸殑鍙f按妯.嬈茬艦涓嶈兘.鐙犱笉寰楁妸嬋槼鑳藉悆鐨勯兘鍚冨畬,鐪佺殑緇欒嚜宸辯暀涓嬫畫蹇?
濡傛灉鏃墮棿鍏佽,51鐪熻鍥炲幓涓瓚熶簡.鏈変簺鎯沖康瀹朵漢浜嗐?/font>



]]>
Hibernate 鏌ヨ鏃?鏈嶅姟鍣ㄦ姤java.lang.NoClassDefFoundError: antlr/ANTLRException http://www.aygfsteel.com/Todayfreeman/archive/2006/03/16/35706.html褰撶悊鎯蟲彃涓婄▼搴忕殑緲呰唨褰撶悊鎯蟲彃涓婄▼搴忕殑緲呰唨Thu, 16 Mar 2006 12:18:00 GMThttp://www.aygfsteel.com/Todayfreeman/archive/2006/03/16/35706.htmlhttp://www.aygfsteel.com/Todayfreeman/comments/35706.htmlhttp://www.aygfsteel.com/Todayfreeman/archive/2006/03/16/35706.html#Feedback2http://www.aygfsteel.com/Todayfreeman/comments/commentRss/35706.htmlhttp://www.aygfsteel.com/Todayfreeman/services/trackbacks/35706.html鍘熷洜鏄痩ib閲屽皯浜哸ntlr-2.7.5H3.jar 榪欎釜鏂囦歡銆傘傞儊闂蜂簡涓涓笅鍗堛?BR>鍔犱笂鍚庝竴鍒囨垚鍔熴傘侶ibernate濂戒笢瑗褲?img src ="http://www.aygfsteel.com/Todayfreeman/aggbug/35706.html" width = "1" height = "1" />

]]>
鍦⊿truts妗嗘灦鍐呭疄鐜板浘鐗囦笂浼?http://www.aygfsteel.com/Todayfreeman/archive/2006/03/13/35118.html褰撶悊鎯蟲彃涓婄▼搴忕殑緲呰唨褰撶悊鎯蟲彃涓婄▼搴忕殑緲呰唨Mon, 13 Mar 2006 11:38:00 GMThttp://www.aygfsteel.com/Todayfreeman/archive/2006/03/13/35118.htmlhttp://www.aygfsteel.com/Todayfreeman/comments/35118.htmlhttp://www.aygfsteel.com/Todayfreeman/archive/2006/03/13/35118.html#Feedback0http://www.aygfsteel.com/Todayfreeman/comments/commentRss/35118.htmlhttp://www.aygfsteel.com/Todayfreeman/services/trackbacks/35118.html榪欎釜闂璁╂垜閮侀椃浜嗕袱涓夊ぉ鏃墮棿,鏈鍚庢墠鍙戠幇闂鏄湪JSP绔?nbsp; <html:form action="/uploadsAction"  enctype="multipart/form-data"  >
鏍囩濡傛灉灝戜簡"  enctype="multipart/form-data"  鏈嶅姟鍣ㄥ氨浼氭姤閿?
涓嬮潰鎶婁唬鐮佽創鍑烘潵.

JSP绔?BR> <html:errors />
          <html:form action="/uploadsAction"  enctype="multipart/form-data"  >
            <html:file property="theFile" /> 
             <html:radio property="upType" value="a" />CSVFileReader
             <html:radio property="upType" value="b" />FileUp      
            <html:submit value="OK"  />
          </html:form>
FormBean涓皢灞炴у畾涔変負FormFile,geter seter 鏂規硶渚濇棫.
Action 涓殑浠g爜濡備笅:瀹炵幇灝嗗浘鐗囦笂浼犺嚦UPLOAD鏂囦歡澶瑰唴 濡傛灉鏂囦歡澶т簬20K鎴栨槸瀹斤紗楂樿秴榪囪瀹氳寖鍥寸殑,浼氶噸鏂板嬀鐢?瀹炵幇瀵逛笂浼犲浘鐗囩殑鎺у埗.
褰撶劧榪欏彧鏄祴璇旳ction娌℃湁璺寵漿欏甸潰..

package upload;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.Action;
import org.apache.struts.upload.*;
import java.io.IOException;
import java.awt.Image;
import java.awt.image.BufferedImage;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import com.sun.image.codec.jpeg.JPEGCodec;

import java.io.File;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;

public class UploadAction extends Action {
    public ActionForward execute(ActionMapping actionMapping,
                                 ActionForm actionForm,
                                 HttpServletRequest servletRequest,
                                 HttpServletResponse servletResponse)throws Exception {
        System.out.println("asdasdasdasdasdasd");
        UploadForm uploadForm = (UploadForm) actionForm;
        FormFile pic =  uploadForm.getPic();
        String picname = pic.getFileName();
        String uploadFileName = servletRequest.getSession()
                                .getServletContext()
                                .getRealPath("upload")+"\\"+picname;
        File upliadFile = new File(uploadFileName);
        BufferedInputStream bis = null;
        Image image = null;
        BufferedOutputStream bos = null;
        try{
        if(pic.getFileSize()<2*1024*1024){
        bis = new BufferedInputStream(pic.getInputStream());
        image = javax.imageio.ImageIO.read(bis);
        int width = image.getWidth(null);
        int height = image.getHeight(null);
        int w = 160;
        int h = 120;
        if(width>w||height>h){
        BufferedImage bi = new BufferedImage(w,h,
                                             BufferedImage.TYPE_INT_RGB);
        bi.getGraphics().drawImage(image,0,0,w,h,null);
        bos = new BufferedOutputStream(new FileOutputStream(
       upliadFile));
        JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bos);
     encoder.encode(bi);
        System.out.println(width * height);
        }else{
        bos = new BufferedOutputStream(new FileOutputStream(upliadFile));
        byte[] date = new byte[5*1024];
        int len = bis.read(date);
        while (len!=-1){
            bos.write(date);
            len = bis.read(date);
        }
        }
        }
             return actionMapping.findForward("ok");
        }catch(Exception e){
        e.printStackTrace();
    } finally {
        try {
            if (bis != null)
                bis.close();
        } catch (IOException e1) {

            e1.printStackTrace();
        }
        try {
            if (bos != null)
                bos.close();
        } catch (IOException e2) {

            e2.printStackTrace();
        }
    }

        return actionMapping.findForward("ok");
    }
}



]]>
浣滀負涓漢Blog鐨勫紑綃?/title><link>http://www.aygfsteel.com/Todayfreeman/archive/2006/03/13/35114.html</link><dc:creator>褰撶悊鎯蟲彃涓婄▼搴忕殑緲呰唨</dc:creator><author>褰撶悊鎯蟲彃涓婄▼搴忕殑緲呰唨</author><pubDate>Mon, 13 Mar 2006 11:14:00 GMT</pubDate><guid>http://www.aygfsteel.com/Todayfreeman/archive/2006/03/13/35114.html</guid><wfw:comment>http://www.aygfsteel.com/Todayfreeman/comments/35114.html</wfw:comment><comments>http://www.aygfsteel.com/Todayfreeman/archive/2006/03/13/35114.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Todayfreeman/comments/commentRss/35114.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Todayfreeman/services/trackbacks/35114.html</trackback:ping><description><![CDATA[<P><FONT size=2>宸茬粡寰堜箙娌℃湁鍐欎笢瑗夸簡錛岀┒鍏跺師鍥狅細<BR>涓鍒欐槸鍥犱負緙哄皯浜嗗啓涓滆タ鐨勫繀瑕佸姩鏈猴紝<BR>浜屽垯鏄殢鐫騫撮緞澧炲姞錛屽挰鏂囧毤瀛楋紝鍗栧紕鏂囩瑪錛屽惞鍢樿B鐨勫姛鍔涘凡澶т笉濡備互鍓?閫氬父紜鍧愬湪鐢佃剳鍓嶅啓涓滆タ鏃?鑴戞搗涓諱細涓嬫剰璇嗙殑嫻幇鍑轟腑瀛︽椂浠f瘡涓槦鏈熷洓鐨勪笅鍗?.<BR>涓夊垯鑷粠鎷滃掑湪JAVA鐭蟲Υ瑁欎笅鍚?瀵逛腑鏂囨枃瀛楃殑鏁忔劅搴﹀凡緇忛鍖栧埌榪戜技鏂囩洸鐨勯樁孌?鎵浠ュ彧鑳藉湪鍢堟潅鐨勪簰鑱旂綉涓婅緹鍑轟竴鍧楄嚜鐣欏湴,浠ヤ究鑷繁鍙戞硠,濂芥鏈?鏈ㄥ瓙緹?"嫻佹皳鐕?涔嬫祦鍨綆,鑷劧涔熸斁鏉捐澶?<BR><BR>浣滀負Blog鐨?寮綃?鑷劧瑕佺粰瀹冨畾涓涓熀璋?鍏嶇殑娌︿負闈犲叕甯冭嚜宸辯殑闅愮鍗氫漢涓鐪嬬殑钘忔薄綰沖灑涔嬪湴,<BR>鎬濇潵鎯沖幓灝咼AVA寮鍙戦斾腑鐨勯亣鍒扮殑闂浠ュ強瑙e喅鏂規鍜屽鏂版妧鏈殑鐞嗚В,浣滀負鍩鴻皟鍐嶄綍鏃朵笉榪?鍏朵腑絀挎彃榪涙棩甯哥敓媧葷殑褰卞瓙涔熷彧鏄粰鏋嚗鐨勭紪紼嬬敓媧諱竴浜涜皟鍓?浣曚箰鑰屼笉涓?!<BR>let's go~~~~</FONT></P><img src ="http://www.aygfsteel.com/Todayfreeman/aggbug/35114.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Todayfreeman/" target="_blank">褰撶悊鎯蟲彃涓婄▼搴忕殑緲呰唨</a> 2006-03-13 19:14 <a href="http://www.aygfsteel.com/Todayfreeman/archive/2006/03/13/35114.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">宁波市</a>| <a href="http://" target="_blank">洪洞县</a>| <a href="http://" target="_blank">南乐县</a>| <a href="http://" target="_blank">元谋县</a>| <a href="http://" target="_blank">宁化县</a>| <a href="http://" target="_blank">正镶白旗</a>| <a href="http://" target="_blank">碌曲县</a>| <a href="http://" target="_blank">遂平县</a>| <a href="http://" target="_blank">广元市</a>| <a href="http://" target="_blank">平度市</a>| <a href="http://" target="_blank">东乡族自治县</a>| <a href="http://" target="_blank">黄龙县</a>| <a href="http://" target="_blank">比如县</a>| <a href="http://" target="_blank">绍兴县</a>| <a href="http://" target="_blank">巢湖市</a>| <a href="http://" target="_blank">浦江县</a>| <a href="http://" target="_blank">永康市</a>| <a href="http://" target="_blank">阿荣旗</a>| <a href="http://" target="_blank">淮北市</a>| <a href="http://" target="_blank">绥芬河市</a>| <a href="http://" target="_blank">南乐县</a>| <a href="http://" target="_blank">双鸭山市</a>| <a href="http://" target="_blank">安吉县</a>| <a href="http://" target="_blank">本溪</a>| <a href="http://" target="_blank">德保县</a>| <a href="http://" target="_blank">肥东县</a>| <a href="http://" target="_blank">永登县</a>| <a href="http://" target="_blank">资中县</a>| <a href="http://" target="_blank">丹阳市</a>| <a href="http://" target="_blank">独山县</a>| <a href="http://" target="_blank">霍山县</a>| <a href="http://" target="_blank">马尔康县</a>| <a href="http://" target="_blank">吉安县</a>| <a href="http://" target="_blank">云南省</a>| <a href="http://" target="_blank">绥滨县</a>| <a href="http://" target="_blank">邛崃市</a>| <a href="http://" target="_blank">榆林市</a>| <a href="http://" target="_blank">介休市</a>| <a href="http://" target="_blank">泗水县</a>| <a href="http://" target="_blank">宜章县</a>| <a href="http://" target="_blank">临澧县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>