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

JSP»·¾³ÅäÖÃ

Ò») °²×°JDK(jdk-1_5_0-windows-i586.exe)£¬Ä¬ÈÏ°²×°£»
(¶þ) °²×°Tomcat(tomcat5.5-installer.exe)£¬Ä¬ÈÏ°²×°£»
 * ˳Ðò²»¿ÉÒԵߵ¹ *
(Èý) ²âÊÔ°²×°½á¹û
1. ´ò¿ªä¯ÀÀÆ÷ÊäÈëhttp://localhost:8080£¬Èç¹û³É¹¦£¬Ôò»á¿´µ½»¶Ó­Ò³Ãæ¡£´Ëʱ·ÃÎʵÄ·¾¶Îª$tomcat/webapps/root/
(ËÄ) ½¨Á¢ÎÒµÄÕ¾µã
·½·¨Ò»£ºÖ±½Ó½«$tomcat/webapps/root/×÷Ϊվµã£¬¿ªÊ¼ÖÆ×÷¡£
·½·¨¶þ£ºÔÚwebappsÖд´½¨
1. Ð½¨Îļþ¼Ð$tomcat/webapps/myjsp
2. ¿½±´$tomcat/webapps/root/WEB-INFÎļþ¼Ðµ½myjspÎļþ¼Ð
3. Ð½¨Îļþtest.jspµ½myjspÖÐ
4. ²âÊÔÎļþ£ºhttp://localhost:8080/myjsp/test.jsp
·½·¨Èý£ºÈÎÒâλÖô´½¨Õ¾µã£¨ÍƼö£©
1. ÈÎÒâλÖÃн¨Îļþ¼Ð£¬Èçd£º/myjsp
2. ¿½±´$tomcat/webapps/root/WEB-INFÎļþ¼Ðµ½myjspÎļþ¼Ð
3. Ð½¨Îļþtest.jspµ½myjspÖÐ
4. ´ò¿ª$tomcat/conf/server.xml£¬ÔÚµÚ192ÐÐ<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">ÏÂÃæÔö¼ÓÒ»¾ä£º <Context path="/anyword" docBase="d:/myjsp" /> *×¢Òâ´óСдContext,docBase*
5. ²âÊÔÎļþ£ºhttp://localhost:8080/anyword/test.jsp
(Îå) Tomcat°²×°Ä¿Â¼ËµÃ÷
1. bin Åú´¦ÀíÎļþ£¬Æô¶¯ÖÕֹʱµÄ»·¾³ÅäÖÃ
2. conf ÅäÖÃÎļþ£¬web.xmlºÍserver.xml
3. logs ÈÕÖ¾
4. webappsÓ¦ÓóÌÐòĿ¼
a) \root ĬÈÏÕ¾µãÆô¶¯Ä¿Â¼
b) \root\web-inf\web.xml Õ¾µãÅäÖÃÐÅÏ¢
5. work ´æ·Å.javaºÍ.class£¬²»Òª¸Ä¶¯
(Áù) ¸ü¸Ä¶Ë¿Ú
´ò¿ª$tomcat/conf/server.xml µÚ78ÐУ¬port="8080" ¸ü¸ÄΪ8888£¬ÖØÆôtomcat£¬ä¯ÀÀhttp://localhost:8888/anyword/test.jsp¡£
£¨Æߣ©¸ü¸ÄĬÈÏÆô¶¯Ò³Ã棺$tomcat/conf/web.xml×îºóλÖÃ
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
¿ÉÒÔɾ³ýËùÓÐ<welcome-file>***</welcome-file>
£¨°Ë£©ÔÊÐíĿ¼ä¯ÀÀ£ºµ±»¶Ó­Ò³ÃæûÓÐÕÒµ½Ê±ÔÊÐíĿ¼ä¯ÀÀ£¬ÔòÐèÒª¸ü¸Ä$tomcat/conf/web.xmlµÚ80ÐÐlistingsµÄֵΪtrue¡££¨tomcat5.5ÐèÒª£¬4.1²»ÐèÒª£©


Ïà¹ØÎĵµ£º

jspÄ£°æ¼ò½é

JSPÄ£°åÓ¦ÓÃÖ¸ÄÏ
Window
¹¤¾ß°üÌṩÁËÒ»ÖÖµäÐ͵IJ¼¾Ö»úÖÆ£¬±ÈÈç˵ÔÚÒ»¸öÈÝÆ÷ÖÐÈ·¶¨²¿¼þÔªËصÄλÖá£ÔÚAWT ºÍ Swing¶¼Óв¼¾Ö¹ÜÀíÆ÷£¬¶øÔÚVisualWorks
SmalltalkÖÐÓÐwrapper¡£±¾ÎĽ«½éÉÜÒ»ÖÖJSPÄ£°å»úÖÆ£¬ËüÔÊÐí²¼¾Ö±»·â×°ºÍÖØÐÂÀûÓá£JSPÄ£°å×îС»¯Á˲¼¾Ö¸Ä±äËùÔì³ÉµÄÓ°Ï죬ÕâÀïÎÒÃÇ
½«¹ÄÀø´ó¼Ò²ÉÓ÷â×°Ä£¿é»¯Éè¼Æ¡£
¾ ......

jspÈÕÆÚÑ¡ÔñÆ÷

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Author" content="Jiang Hongbin">
<title>ÈÕÆÚÑ¡Ôñ - BY ziyue</title>
<script language="JavaScript" type="text/JavaScript">
// ÈÕÆÚÑ¡Ôñ
var months = new Array ......

JSPÒ³ÃæÌøת´óÈ«

JSPÒ³ÃæÌøת´óÈ«
JSPÖеÄÌøת£º
(1). forward()·½·¨
    ʹÓõ½javax.servlet.RequestDispatcherÀà
    RequestDispatcher rd = getServletContext().getRequestDispatcher("url");
    rd.forward(requestVar,requestVar); //´«µÝservletµÄÈë¿Ú²ÎÊý
   ......

FCKeditor jsp ÅäÖà ʹÓÃ

FCKeditor jsp ÅäÖà ʹÓÃ
2009-04-07 16:57
FCKeditorÊÇÒ»¿î¿çƽ̨µÄÔÚÏ߱༭Æ÷£¬µ½ÎÒ·¢²¼±¾ÎÄ£¬FCKeditorµÄ¹Ù·½°æ±¾ÒѾ­·¢Õ¹µ½ÁË2.6.4
µã»÷½øÈë ¹ÙÍø
1¡¢Ê×Ïȵǽwww.fckeditor.net/downloadÏÂÔØFCKeditorµÄ×îа汾£¬ÐèÒªÏÂÔØ2¸öѹËõ°ü£¬Ò»¸öÊÇ»ù±¾Ó¦Óã¬ÁíÒ»¸öÊÇÔÚΪÔÚjspÏÂËù×¼±¸µÄÅäÖá£
     ......

JSP 9´ó¶ÔÏóÏê½â

ѧϰJSPÖ÷ҪѧϰËûµÄ9´ó¶ÔÏó(request, response, pageContext, session, application, out, config, page, exception ),ÕâЩ¶ÔÏó¶¼ÊǾ²Ì¬¶ÔÏ󣬲»Óö¨Òå¾Í¿ÉÒÔÖ±½ÓʹÓ㬰ÑËûÃǶ¼Á˽âÇå³þ²¢»áÔËÓ㬾ͿÉÒÔÔÚ¼òÀúÉÏÌíÉÏÒ»¸öÊìϤ¼¼ÄÜ:JSP
JspÄÚÖöÔÏó ¹¦ÄÜ Ö÷Òª·½·¨
out  Ïò¿Í»§¶ËÊä³öÊý¾Ý print() println() flush() ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ