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»Ð´Ëü£¬ÓÖ²»ÄÜ´«Í¼Æ¬£¬´ó¼Ò¸ø¸ö½¨Òé¡£ËÒªÊÇÓÐдºÃµÄÒ²ÇëÌù³öÀ´£¬²»Ê¤¸Ðл¡
Ïà¹ØÎÊ´ð£º
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ã潫²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
ΪʲôHTMLÒÔ¼°Ò»Ð©ÆäËü±êÇ©»áÏÔʾһЩÌض¨±íÏÖÐÎʽÄØ£¿ÈçHTMLÖеĻ»ÐбêÇ©<BR/>ÔڵײãÊÇÔõÑùʵÏÖµÄÄØ£¿ÏÖʵµÄÔÀíÊÇʲôÄØ
È¥W3C¹Ù·½ÍøÕ¾ÉÏ£¬¿´¿´°É£¡ÎÒÏëÒ»¿´Äã¾ÍÃ÷°×ÁË
ÎҲºͱàÒëÔÀíÓйأ¬ä¯ÀÀÆ÷Àï¿É ......
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& ......
ÏÖÔÚ²»ÏëÓÃ<a> </a> ±êÇ© £¬ÒòΪµã»÷ºó»á³öÏÖÒ³ÃæÖض¨Î»£¬¸øÎÄ×Ö¼ÓÉÏcssÑùʽ¾Í¿ÉÒÔ¿´ÆðÀ´ ÊÇhrefÔõôʵÏÖÕâÑùµÄcss
text-decoration:underline; cursor:hand;
ÒýÓÃ
text-decoration:underline; cur ......