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ÖеÄʵР......
¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£
´Ê¿âÔõôÉú³ÉÄØ£¿
²»»á¡£
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ
ÓÃmap ¼üÖµ¶ÔÓ¦
Èç¹ûÓÃÊý¾Ý¿ ......
ÎÒÔÚ javaºËÐļ¼ÊõÉÏ ¿´ÁËÒ»¸ö ÀûÓà Java socket emailµÄÀý×Ó ¿ÉÊÇÔõôҲ ²»³É¹¦ Ϊʲô£¿
Ô´Âë
Java code:
package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......
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& ......
ÔõôÑù½«id´«¹ýÈ¥°¡£¿£¿£¿ÊǼòµ¥µÄ´«¡£¡£¡£ÔÚµØÖ·À¸ÖÐдidºÅ
LZ ºÃÓÄĬ£¡²»ÖªµÀÄãµÄÒâ˼£¿
ÊÇÏë°ÑID ´«µ½ACTION ? ͨ¹ýURl id=?
²»¹»Ïêϸ ±ðÈ˲»ÖªµÀÔõÑù°ïÄã
../XXXXX.do?id=XXXX&id2=XXXXX
......