Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JSP+AJAX Ìí¼Ó¡¢É¾³ý¶àÑ¡¿ò

±¾ÀýÊDzÉÓÃJSP + Ajax + Îı¾À´ÑÝʾ¶àÑ¡¡¢È«Ñ¡£¬Ìí¼Ó¡¢É¾³ý¡¢¸üÐÂcheckbox¶àÑ¡¿òµÄЧ¹û£»³ä·ÖÕ¹ÏÖÁËÀûÓÃJavaScript¿ØÖÆHTML DOMÒÔ¼°ÀûÓÃXML http ´«µÝÊý¾Ý£¬ÀûÓÃJSP²Ù×÷Îı¾µÄЧ¹û¡£
¡¡¡¡1.JavaScript ÓÃÀ´¿ØÖÆÒ³ÃæÄÚÈݵÄÏÖʵÓëÔöɾЧ¹û£»
¡¡¡¡2.JSP×÷Ϊºǫ́£¬¶ÔÎı¾½øÐжÁÈ¡¡¢Ð´Èë¡¢¸üеȲÙ×÷£»
¡¡¡¡3.Îı¾¸ñʽÊÇÓÃÀ´´æ´¢Êý¾ÝµÄ£¬Êý¾Ý±àÂëUTF-8;4, ±¾Àý×ÓÔÚwin32,Red hat Linux 9Ï jdk1.5,Tomcat 5.0,Apache 2.5ϵ÷ÊÔͨ¹ý£¬Í¬Ê±¼æÈÝFirefox 1.0,Opera 8.0,IE6¡£
¡¡¡¡±¾Àý×ÓµÄÓŵ㣺
¡¡¡¡1.ʵʱ´´½¨html¶ÔÏó£¬Ëù¼û¼´ËùµÃµÄÒ³ÃæÔöɾ²Ù×÷¡£ÏÔʾËٶȼӿ죬Ôö¼ÓÓû§ÌåÑé¡£
¡¡¡¡2.XML http´«µÝÊý¾ÝÊÇÖ»ÊÇÒ»¸öid»òÒ»¸ö±íµ¥Öµ,½ÚÊ¡´ø¿í¡£
¡¡¡¡3.±¾Àý×ÓÊʺϲÉÓÃXML http·½Ê½,ËùÒÔÕâ¸öЧ¹ûʵÓÃÐÔÇ¿£¬¿ÉÊÇJS/JSP´úÂ붼ºÜ¼òµ¥¡£
¡¡¡¡4.ÓкܶණÎ÷¿ÉÒÔÔÚÆäËûÏîÄ¿Öй²ÓÃ,²¢ÇÒ½â¾öÁ˲Ù×÷Îı¾¹ØÓÚÖÐÎÄ×Ö·û±àÂëµÄÎÊÌâ¡£ (±¾Àý×ÓÔÚÖÐÎIJÙ×÷ϵͳÔËÐУ¬ËùÒÔÑ¡ÔñÁËGBK±àÂ룬Èç¹ûOSÊÇÓ¢ÎĵÄÔòÐèÒªÁíÍâ´¦Àí£¬±ÈÈç¸Ä±àÂëΪUTF-8£¬»òÕ߸ù¾ÝÐèÒªÁíÍâת»»±àÂë¡£)
¡¡¡¡5.ÓÐÍÏקÒÔ¼°Õ¹¿ª¹Ø±ÕµÄЧ¹û£¬ÓÃcookie¼Ç¼ÁËλÖÃÒÔ¼°´ò¿ª¹Ø±Õ״̬£¬¿ÉÒÔÔÚij¸öÏîÄ¿ÀïÓá£
¡¡¡¡6.ÓзḻµÄ×¢ÊÍ,ÊʺϳõѧÕßÒ»Æð̽ÌÖ¡£
¡¡¡¡È±µã£º
¡¡¡¡1.ά»¤µ÷ÊÔÂé·³,ΪÁËÕâ¸öЧ¹ûÊÇ·ñÖµµÃÕâÑù×ö£¿Èç¹û²ÉÓÃÆÕͨµÄ·½Ê½£¬Ç¶ÈëÒ»¸öiframe½øÀ´£¬»á²»»áÒ²¿ÉÒÔ¡£
¡¡¡¡2.´úÂëûÓиü¶àµØÓÅ»¯¡¢¼òд,ÓÐЩµØ·½ÈßÓà¡£
¡¡¡¡3.½»»¥Éè¼Æ·½ÃæûÓкúõØ×ö£¬ÕâÀïÖ÷Òª±íʾµÄÊǼ¼ÊõʵÏֺͽ»Á÷¡£


Ïà¹ØÎĵµ£º

(¶þ)Tomcat+JSPÅäÖà TO ÍõÀÏʦ

Ò»¡¢°²×°jdk²¢ÅäÖÃjdk
     1¡¢Ë«»÷°²×°jdk-6u19-windows-i586(¼Ù¶¨ÄãµÄjdkʹÓÃĬÈÏ°²×°£¬°²×°ÔÚC:\Program Files\Java\jdk1.6.0_19)£»
     2¡¢ÅäÖû·¾³±äÁ¿£¬ÔÚÎҵĵçÄÔ->ÊôÐÔ->¸ß¼¶->»·¾³±äÁ¿->ϵͳ±äÁ¿ÖÐÌí¼ÓÒÔÏ»·¾³±äÁ¿
    (1)ϵͳ±äÁ¿ ......

FckeditorºÍJSP(Java)ÏîÄ¿µÄÕûºÏʵÀý

(תÔرêÇ©£ºfckeditorit ·ÖÀࣺJava)
1.½«FCKeditorĿ¼ÏµÄeditor¿½±´µ½ÏîÄ¿µÄWebContentĿ¼ÏÂ
2.²¢°ÑECKeditor-2.3.jar ºÍ commons-fileupload.jar¿½±´µ½ÏîÄ¿\WebContent\WEB-INF\libĿ¼ÏÂ
3.°Ñ FCKeditor.tld¿½±´µ½ÏîÄ¿\WebContent\WEB-INFÏÂ
4.ÔÚweb.xmlÀïÌí¼ÓÈçÏ´úÂë
´úÂë
<servlet>    ......

jsp Í·Îļþ cookie

<%
Cookie[] cooks = request.getCookies();
String cookieName = "Mycookie";
boolean flag = false;
for(Cookie cook : cooks)
{
if(cook.getName().equals(cookieName))
{
    flag = true;
    break;
}
}
if(!flag){
String str=System.currentTimeMillis()+"";
Cook ......

ÔÚ¶à¸öjspÒ³Ãæ´«µÝ²ÎÊý

1.       ÔõôÔÚ¶à¸öJSPÒ³ÃæÖ®¼ä½øÐвÎÊý´«µÝ£¿ÐèҪʹÓÃJSPµÄÄÚÖÃ×÷ÓÃÓò¶ÔÏósession¡£ÀûÓÃËüµÄÁ½¸ö·½·¨setAttribute()£¬getAttribute()
2.       ÏÂÃæµÄÕâ¸öʵÀýʵÏÖÁ˰ѵÚÒ»¸öJSPÒ³ÃæµÄ²ÎÊý´«µÝ¸øµÚÈý¸öÒ³ÃæµÄ¹¦ÄÜ
3.     &nbs ......

JSPÄÚÖöÔÏó

JSP½Å±¾Öаüº¬9¸öÄÚÖöÔÏó£¬Õâ9¸öÄÚÖöÔÏó¶¼ÊÇServlet API½Ó¿ÚµÄʵÀý£¬Ö»ÊÇJSP¹æ·¶½«ËüÃÇÍê³ÉÁËĬÈϳõʼ»¯£¨ÓÉJSPÒ³Ãæ¶ÔÓ¦ServletµÄ_jspService()·½·¨À´´´½¨ÕâЩʵÀý£©¡£Ò²¾ÍÊÇ˵£¬ËüÃÇÒѾ­ÊǶÔÏ󣬿ÉÒÔÖ±½ÓʹÓá£9¸öÄÚÖöÔÏóÒÀ´ÎÈçÏ£º
application£ºjavax.servlet.ServletContextµÄʵÀý£¬¸ÃʵÀý´ú±íJSPËùÊôµÄWebÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ