jspÔËÐл·¾³µÄÅäÖÃ
Õâ¶Îʱ¼äÔÚѧϰJSP£¬×ÜÌåÀ´Ëµ£¬JSPѧϰÆðÀ´¸Ð¾õ»¹²»´í£¬²»ÖªµÀÊDz»ÊÇÓÐÁËJAVAµÄ¹¦µ×£¬Ã»¸Õ¸Õ¿ªÊ¼Ñ§Ï°CÓïÑÔµÄʱºòÄÇô³ÔÁ¦¡£²»¹ÜÊÇҪѧϰJSP»¹ÊÇÆäËû±à³ÌÓïÑÔ£¬ÎÒÃǶ¼Ó¦¸ÃÄÜѧ»á×Ô¼ºÊìÁ·µÄ°²×°ºÍÅäÖÃÐèÒªÓõ½µÄ¿ª·¢Èí¼þ¡£ÓÐÁË¿ª·¢Èí¼þ¾Í»áÊ°빦±¶¡£Ð´´úÂëÒ²»á¸ü¿ì½ÝºÍ·½±ã£¬ÓÐЩ¹Ø¼ü´Ê»ò´íÎóÒ²»áÌáÐÑÓ뾯¸æ¡£µ±È»ÓÃÔʼµÄDOSÖ®ÀàµÄÒ²¿ÉÒÔ£¬Ö»²»¹ýÏ൱ÓÚ¸Õ¸ÕÆð²½²»¾ÃµÄ»¹ÊÇѧ»áÕÆÎÕÈí¼þ¡£
Ê×ÏÈÎÒÃÇÒªÕÒºÃÐèÒªµÄJSP¿ª·¢Èí¼þ£¬Èçjdk£¬tomcat£¬eclipse¡£ÎÒÃÇÒªÁ˽âÕâЩÈí¼þµÄ»ù±¾¹¦ÄÜ¡£
¿ªÊ¼£ºÎÒÃÇÒª¿´»ú×ÓÊÇ·ñ°²×°ÁËJDK£¬ÒªÊÇûÓа²×°¾ÍÏÂÔØÏàÓ¦µÄ°æ±¾°²×°ºÃ»·¾³£¬ÓÐÁËJDK»·¾³ÎÒÃDzÅÄÜʹÓÃeclipse½øÐпª·¢¡£Ö®ºó¾ÍÊÇ°²×°tomcatÓÃÓÚ·¢²¼¿ª·¢ÏîÄ¿¡£×îºó¾ÍÊÇ°²×°eclipse£¬ÕâÒ²ÊÇÐèÒªÊʺϵİ汾£¬½øÐÐJSP±à³Ì£¬ÎÒÃÇÒª¶Ôeclipse½øÐÐÅäÖû·¾³£ºÔËÐÐʱ»áÏÔʾworkplace£¬Ò²¾ÍÊǹ¤×÷¿Õ¼ä£¬ÓÃÀ´´¢´æÎÒÃÇ¿ª·¢µÄÎı¾£¬Îĵµ£¬ºóÃæ×îºÃʹÓÃÓ¢ÎÄÐÎʽ¡£½øÈ뿪·¢½çÃ棺File>>>other>>>web>>>Dynamic web project>>>ÌîдprojectÃû£¬target runtimeÑ¡ÔñApache Tomcat °æ±¾£¬Ö®ºó¾ÍÊÇÔÚµ¯³öµÄÏûÏ¢¿òÑ¡Ôñ֮ǰApache TomcatµÄ°²×°Â·¾¶£»È»ºó¾ÍÓµÓÐÁËÒ»¸ö×Ô¼ºµÄ¹¤×÷¿Õ¼ä£¬¿ÉÑ¡ÔñWebcontentÓÒ»÷н¨JSPÎĵµ¡£
Ïà¹ØÎĵµ£º
Ò»¼ò½é£¬
Pager-taglib£¬Ö§³Ö¶àÖÖ·ç¸ñµÄ·ÖÒ³ÏÔʾ¡£Êµ¼ÊÉÏËýÊÇÒ»¸öJsp±êÇ©¿â£¬ÎªÔÚJSPÉÏÏÔʾ·ÖÒ³ÐÅÏ¢¶øÉè¼ÆµÄÒ»Ì×±êÇ©£¬Í¨¹ýÕâЩ±êÇ©µÄ²»Í¬µÄ×éºÏ£¬»áÐγɶàÖÖ²»Ò»ÑùµÄ·ÖÒ³Ò³Ã棬·ç¸ñ¸÷Ò죬Ëý×Ô´øµÄDEMO¾ÍÓÐÆßÖÖ×óÓҵķÖÒ³·ç¸ñ£¬°üÀ¨GoogleµÄ·ÖÒ³·ç¸ñ¡£¶øÐèÒª¶©ÖÆ×ÔÒѵķç¸ñµÄ·ÖÒ³Ò³ÃæÒ²·Ç³£¼òµ¥¡£
·ÖÒ³·½Ê½ÓÐÁ½ÖÖ£º
Ò ......
HTML:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
PHP£º
header("Expires: Mon, 26 Jul 1997 ......
Ò»¡¢ÔÚJSPÒ³ÃæÖжÁÈ¡±¾µØÎļþÄÚÈÝ£º
<%
try {
BufferedReader in = new BufferedReader(new FileReader("D:/test.txt"));
String file = "";
String temp = "";
&n ......
ÓйØJSP/ServletµÄÖض¨Ïò¼¼Êõ×ÛÊöÈçÏÂ
1.RequestDispatcher.forward()
ÊÇÔÚ·þÎñÆ÷¶ËÆð×÷ÓÃ,µ±Ê¹ÓÃforward()ʱ,Servlet engine´«µÝHTTPÇëÇó´Óµ±Ç°µÄServlet or JSPµ½ÁíÍâÒ»¸öServlet,JSP »òÆÕͨHTMLÎļþ,Ò²¼´ÄãµÄformÌá½»ÖÁa.jsp,ÔÚa.jspÓõ½ÁËforward()Öض¨ÏòÖÁb.jsp,´ËʱformÌá½»µÄËùÓÐÐÅÏ¢ ......
JSP³£ÓÃÎÊ´ð
ÊÕ²Ø
< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
......