jspÉÏ´«Í¼Æ¬ÎÊÌâ - Java / Web ¿ª·¢
ÎÒÏë×öÒ»¸öÉÏ´«µÄ¹¦ÄÜ£¬<input type="text" name="file1" value=""/><a href="uploadImg.jsp" target="_blank">ÉÏ´«</a>¡£´ó¸ÅÑù×Ó¾ÍÊÇÕâÑù¡£µ±µã»÷ÉÏ´«Ê±Ìø³ö¸öÒ³Ãæ£¬¿ÉÒÔÑ¡ÔñͼƬ·¾¶£¬ÉÏ´«ÍêºóÒ³Ãæ»á×Ô¶¯¹Ø±Õ£¬ÇÒÔڸղŵÄÎı¾¿òÖÐ×Ô¶¯ÏÔʾͼƬµÄµØÖ·¡£»¹Çë¸÷λ¸ßÊÖÖ¸½Ì¡£
ÕâÆªÎÄÕ¶ÔÄãÓ¦¸Ã»áÓаïÖú.http://www.feloo.com/it/info.php?id=194970
ÖÁÓÚÄã˵µÄ´ò¿ªÒ»¸öÒ³Ãæ,ÉÏ´«Í¼Æ¬,·µ»Ø¸¸´°¿Ú,ÏÔʾ·¾¶,¿ÉÒÔÓÃjsÍê³É°Ñ.
Â¥ÉϵÄÅóÓÑ£¬ÄãµÄÎÄÕºÜÓÐÓ㬵«ÎÒ¾ÍÏëÖªµÀÄãºóÃæËµµÄ¿ÉÒÔÓÃjsÍê³ÉµÄЧ¹û¡£Èç¹ûÖªµÀ£¬»¹Íû²»Áߴͽ̡£
ÔÀíÉÏÊÇÕâÑùµÄ,Äã¿ÉÒÔ¸ÄÒ»ÏÂ. ¾¹ýservletÉÏ´«Í¼Æ¬ºó,ÓÃjava´úÂëÊä³ö·µ»Ø¸¸´°¿ÚµÄjs.
¾²µÈ´ð°¸
ȯlianghaijian:
˼·´ó¸Å¾ÍÊÇÄã˵µÄÄÇÑù£¬µ«ÊÇÄǸö×Ó´°¿ÚÈç¹ûд³É
<input type="file name="file1" />µÄ»°¾Í²»ÐÐÁË£¬»¹Íû´Í½Ì¡£
²»ºÃÒâ˼£¬Ëµ´í»°ÁË£¬ÉÏÃæËµµÄÒ²¿ÉÒÔʵÏÖ¡£µ«ÊÇÈçºÎÔÚ×Ó´°¿ÚÖÐʵÏÖÉÏ´«Í¼Æ¬µÄ¹¦ÄÜ£¬·µ»ØµÄͼƬÃûÊÇ×Ô¶¯´¦Àí¹ýµÄ£¿Äܲ»ÄÜʵÏÖ¶àÕÅͼƬÅúÁ¿ÉÏ´«£¬µ«ÊÇÖ»ÓÐÒ»¸ö<input type="file name="file1" />ÕâÑùµÄ£¬»¹Çë¸÷λ¸ßÊִͽ̡£
Ö»ÓÐÒ»¸öfileµÄ¶àÎļþÉÏ´«£¬µÄûÓÐ×ö¹ýŶ£¬Äã¿ÉÒÔÒªÇó´ò°üÉÏ´«£¬»òÕß¶¯Ì¬Ìí¼Ófile±íµ¥¡£ÓÃcommon×é¼þʵÏÖ¶àÎļþÉÏ´«¡£
ʵ¼ÊÉÏÎÒÖ»Ïë×öÒ»¸ö¼ÈÄÜÉÏ´«Í¼Æ¬£¬ÓÖÄÜÉÏ´«ÎÄ×Ö£¬×îºÃÄÜͬʱÉÏ´«¶àÕÅͼƬµÄ¹¦ÄÜ¡£µ«ÊÇдµ½jspÖеÄʱºò£¬Ò»Ìá½»£¬µÚ¶þ¸öÒ³ÃæÖнÓÊÕµ½ÎÄ×ÖÈ«ÊÇnull,ÎÒ²éÁËһϣ¬ÊÇÒòΪenctype="multipart/form-data"Õâ¸öµÄ¹ØÏµ£¬µ«ÊDz»Ð´Ëü£¬ÓÖ²»ÄÜ´«Í¼Æ¬£¬´ó¼Ò¸ø¸ö½¨Òé¡£ËÒªÊÇÓÐдºÃµÄÒ²ÇëÌù³öÀ´£¬²»Ê¤¸Ðл¡
Ïà¹ØÎÊ´ð£º
ÇëÎÒÓÃFCKÉÏ´«Îļþ,ÔÚ±¾µØµÄwindows»úÉϲâÊÔ¿ÉÒÔ£¬µ«²¿Êðµ½linux·þÎñÆ÷ÉϾÍÉÏ´«²»ÁËÎļþ£¬ÉÏ´«Îļþʱһֱ¿¨ÔÚÄÇÀï¡£Íû¸÷λ´óϺָµã£¬Ð»Ð»£¡
·¹ý£¬°ïÄ㶥һϡ£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
ÉÏ´«ÎļþµÄ·¾¶ÎÊÌ⣬ ......
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......
È磺 @superwaring("unchecked");
Õâ¸öÀïÃæ¶¼¿ÉÒÔÈ¡ÄÄЩֵ°¡£¬»¹ÓÐÀàËÆµÄ @superwaring±êÇ©ÓÐÄÄЩ°¡
ûÓùý¡£¡£
¿´jeeµÄapi
javax.persistenceÀï
@superwaring("unchecked");Ö»ÊǺöÂÔ ......
insert into [ScholarshipManagement].[dbo].[department] ([department],[specialization] ,[grade]) output inserted.departmentID values(? ,? ,? )
ÇëÎÊ´ó¸çÃÇÕâ¸ösql Óï¾äÓ¦¸ÃÓÃJavaÀïµÄÄǸöÊý¾Ý¿â²Ù×÷·½·¨£¿ ......