ÉÏ´«ÏÂÔØjspSmartUpload°üµÄʹÓÃ[Java]
ÉÏ´«ÏÂÔØjspSmartUpload°üµÄʹÓÃ[Java]
Ò»¡¢°²×°Æª
¡¡¡¡jspSmartUploadÊÇÓÉwww.jspsmart.comÍøÕ¾¿ª·¢µÄÒ»¸ö¿ÉÃâ·ÑʹÓõÄÈ«¹¦ÄܵÄÎļþÉÏ´«ÏÂÔØ×é¼þ£¬ÊÊÓÚǶÈëÖ´ÐÐÉÏ´«ÏÂÔزÙ×÷µÄJSPÎļþÖС£¸Ã×é¼þÓÐÒÔϼ¸¸öÌص㣺
1¡¢Ê¹Óüòµ¥¡£ÔÚJSPÎļþÖнö½öÊéдÈýÎåÐÐJAVA´úÂë¾Í¿ÉÒԸ㶨ÎļþµÄÉÏ´«»òÏÂÔØ£¬·½±ã¡£
2¡¢ÄÜÈ«³Ì¿ØÖÆÉÏ´«¡£ÀûÓÃjspSmartUpload×é¼þÌṩµÄ¶ÔÏó¼°Æä²Ù×÷·½·¨£¬¿ÉÒÔ»ñµÃÈ«²¿ÉÏ´«ÎļþµÄÐÅÏ¢£¨°üÀ¨ÎļþÃû£¬´óС£¬ÀàÐÍ£¬À©Õ¹Ãû£¬ÎļþÊý¾ÝµÈ£©£¬·½±ã´æÈ¡¡£
3¡¢ÄܶÔÉÏ´«µÄÎļþÔÚ´óС¡¢ÀàÐ͵ȷ½Ãæ×ö³öÏÞÖÆ¡£Èç´Ë¿ÉÒÔÂ˵ô²»·ûºÏÒªÇóµÄÎļþ¡£
4¡¢ÏÂÔØÁé»î¡£½öдÁ½ÐдúÂ룬¾ÍÄÜ°ÑWeb·þÎñÆ÷±ä³ÉÎļþ·þÎñÆ÷¡£²»¹ÜÎļþÔÚWeb·þÎñÆ÷µÄĿ¼Ï»òÔÚÆäËüÈκÎĿ¼Ï£¬¶¼¿ÉÒÔÀûÓÃjspSmartUpload½øÐÐÏÂÔØ¡£
5¡¢Äܽ«ÎļþÉÏ´«µ½Êý¾Ý¿âÖУ¬Ò²Äܽ«Êý¾Ý¿âÖеÄÊý¾ÝÏÂÔØÏÂÀ´¡£ÕâÖÖ¹¦ÄÜÕë¶ÔµÄÊÇMYSQLÊý¾Ý¿â£¬ÒòΪ²»¾ßÓÐͨÓÃÐÔ£¬ËùÒÔ±¾ÎIJ»×¼±¸¾ÙÀý½éÉÜÕâÖÖÓ÷¨¡£
¡¡¡¡jspSmartUpload×é¼þ¿ÉÒÔ´Ówww.jspsmart.comÍøÕ¾ÉÏ×ÔÓÉÏÂÔØ£¬Ñ¹Ëõ°üµÄÃû×ÖÊÇjspSmartUpload.zip¡£ÏÂÔغó£¬ÓÃWinZip»òWinRAR½«Æä½âѹµ½TomcatµÄwebappsĿ¼Ï£¨±¾ÎÄÒÔTomcat·þÎñÆ÷ΪÀý½øÐнéÉÜ£©¡£½âѹºó£¬½«webapps/jspsmartuploadĿ¼ÏµÄ×ÓĿ¼Web-infÃû×Ö¸ÄΪȫ´óдµÄWEB-INF£¬ÕâÑùÒ»¸ÄjspSmartUploadÀà²ÅÄÜʹÓá£ÒòΪTomcat¶ÔÎļþÃû´óСдÃô¸Ð£¬ËüÒªÇóWebÓ¦ÓóÌÐòÏà¹ØµÄÀàËùÔÚĿ¼ΪWEB-INF£¬ÇÒ±ØÐëÊÇ´óд¡£½Ó×ÅÖØÐÂÆô¶¯Tomcat£¬ÕâÑù¾Í¿ÉÒÔÔÚJSPÎļþÖÐʹÓÃjspSmartUpload×é¼þÁË¡£
¡¡¡¡×¢Ò⣬°´ÉÏÊö·½·¨°²×°ºó£¬Ö»ÓÐwebapps/jspsmartuploadĿ¼ÏµijÌÐò¿ÉÒÔʹÓÃjspSmartUpload×é¼þ£¬Èç¹ûÏëÈÃTomcat·þÎñÆ÷µÄËùÓÐWebÓ¦ÓóÌÐò¶¼ÄÜÓÃËü£¬±ØÐë×öÈçϹ¤×÷£º
1£®½øÈëÃüÁîÐÐ״̬£¬½«Ä¿Â¼Çл»µ½TomcatµÄwebapps/jspsmartupload/WEB-INFĿ¼Ï¡£
2£®ÔËÐÐJAR´ò°üÃüÁjar cvf jspSmartUpload.jar com
£¨Ò²¿ÉÒÔ´ò¿ª×ÊÔ´¹ÜÀíÆ÷£¬Çл»µ½µ±Ç°Ä¿Â¼£¬ÓÃWinZip½«comĿ¼ÏµÄËùÓÐÎļþѹËõ³ÉjspSmartUpload.zip£¬È»ºó½«jspSmartUpload.zip»»ÃûΪjspSmartUpload.jarÎļþ¼´¿É¡££©
3£®½«jspSmartUpload.jar¿½±´µ½TomcatµÄshared/libĿ¼Ï¡£
¶þ¡¢Ïà¹ØÀà˵Ã÷ƪ
¢å FileÀà
¡¡¡¡Õâ¸öÀà°ü×°ÁËÒ»¸öÉÏ´«ÎļþµÄËùÓÐÐÅÏ¢¡£Í¨¹ýËü£¬¿ÉÒԵõ½ÉÏ´«ÎļþµÄÎļþÃû¡¢Îļþ´óС¡¢À©Õ¹Ãû¡¢ÎļþÊý¾ÝµÈÐÅÏ¢¡£
¡¡¡¡FileÀàÖ÷ÒªÌṩÒÔÏ·½·¨£º
1¡¢saveAs×÷Ó㺽«Îļþ»»ÃûÁí´æ¡£
ÔÐÍ£º
public void saveAs(java
Ïà¹ØÎĵµ£º
ºÜ¶àÍøÓÑÎÊÎÒѧϰJavaÓÐûÓÐʲô½Ý¾¶,ÎÒ˵“ÎÞËû£¬Î¨ÊÖÊì¶û”¡£µ«ÊÇÎÒÈ´ºÜÔ¸Ò⽫×Ô¼ºÑ§Ï°µÄһЩ¾Ñéд³öÀ´£¬ÒÔ±ãºóÀ´ÕßÉÙ×ßÍä·,°ïÖú±ðÈËÊÇ×î´óµÄ¿ìÀÖÂ
ÒªÏëѧºÃJava£¬Ê×ÏÈÒªÖªµÀJavaµÄ´óÖ·ÖÀà¡£ÎÒÃÇÖªµÀ£¬×Ô´ÓSunÍƳöJavaÒÔÀ´£¬¾ÍÁ¦Í¼Ê¹Ö®ÎÞËù²»°ü£¬ËùÒÔJava·¢Õ¹µ½ÏÖÔÚ£¬°´Ó¦ÓÃÀ´·ÖÖ÷Òª·ÖΪÈý´ó¿é£ºJ ......
Î人±±´óÇàÄñ·ÖÎöΪʲôҪ²ÉÓÃjavaÕâ¸öƽ̨
¡¡¡¡´Ó¿ª·¢ÏîÄ¿µÄÀà±ð½Ç¶È¿´javaƽ̨»ùÓÚB/S½á¹¹µÄϵͳ£¬ÔÚÕâ¸ö·½ÏòÉϵľºÕùÊǼ¤Áҵģ¬ÓÐרעÓڴ˵ÄLAMP(Linux + Apache + Mysql + Php);Ò²ÓиոÕÐËÆðµÄRails(Ruby Frameworks)ÉõÖÁÊǺųƿìËÙ¿ª·¢µÄASP.NET;µ±È»ÁËjavaÔÚÕâ¸öÁìÓòÀïµÄMVC¿ò¼ÜÊý¶¼Êý²»Í꣬±ÈÈçStruts . WebworkµÈ£ ......
ÏÖÔÚ»¹ÓкܶàÈ˸㲻¶®PHPºÍJAVA¿ª·¢µÄÐͬOAµ½µ×ÓÐʲô²»Í¬£¬¶Ô×Ô¼ºµ½µ×ÓÐʲôӰÏ죬ÒÔÖÁÓÚ×ö³öÁË´íÎóµÄÑ¡Ôñ¶øêݺ¦ÎÞÇî¡£±ÊÕ߸ù¾ÝÁ½ÖÖ¼¼ÊõµÄÌصãÖØÐÂÕûÀíÁËÒ»¸ö¶Ô±È£¬¸ø¹ØÐÄÐͬOA¼¼ÊõµÄ¶ÁÕß×ö¸ö²Î¿¼¡£
»ªÌ춯Á¦ÐͬOAÊDzÉÓÃJAVA¼¼ÊõµÄµäÐÍ´ú±í£¬²¢¾ßÓÐһϵÁÐÓÅ»¯É ......
JSPÔ´´úÂë
<%
//»ñȡϵͳʱ¼ä
//String ddate=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar.getInstance().getTime());
TimeZone tz = TimeZone.getTimeZone("ETC/GMT-8");
TimeZone.setDefault(tz);
  ......