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

includeºÍjsp:include

index.jsp:
<html>
<head>
<title>The News</title>
</head>
<body>
<h1> Latest News</h1>
<table>
<tr>
<td><h3><%@include file="items/news1.jsp" %></h3></td>
</tr>
<tr>
<td><h3><jsp:include page="items/news1.jsp"/></h3></td>
</tr>
</table>
</body>
</html>
items/news1.jsp:
Sharks attacked <%@ include file="news2.jsp" %>, <jsp:include page="news2.jsp"/> survived!
items/news2.jsp:
swimmers
news2.jsp:
nobody
index.jspÊä³ö£º
Latest News
Sharks attacked swimmers, nobody survived!
Sharks attacked swimmers, swimmers survived!
<% @include %>Ö¸ÁîÔÚ·­Òë½×¶Î»á°ÑÒ³Ãæ°üº¬½øÀ´£¬<jsp:include>¶¯×÷ÔòÔÚÇëÇóʱִÐС£  


Ïà¹ØÎĵµ£º

jspÖвÙ×÷Cookie


Cookie¸ÅÄî:
     CookieµÄ¸ñʽʵ¼ÊÉÏÊÇÒ»¶Î´¿Îı¾ÐÅÏ¢, ÓÉ·þÎñÆ÷Ëæ×ÅÍøÒ³Ò»Æð·¢Ë͵½¿Í»§¶Ë, ²¢±£´æÔÚ¿Í»§¶ËÓ²ÅÌÖÐÖ¸¶¨µÄĿ¼µÄ. ´ó¼Ò¶¼´«ËµCookie»áÔì³ÉÑÏÖصݲȫÍþвʲôµÄ, Æäʵ²»ÊÇÕâô»ØÊÂÇé. ·þÎñÆ÷¶ÁÈ¡CookieµÄʱºò, Ö»Äܹ»¶ÁÈ¡µ½Õâ¸ö·þÎñÆ÷Ïà¹ØµÄÐÅÏ¢. ¶øÇÒ, ä¯ÀÀÆ÷Ò»°ãÖ»ÔÊÐí´æ·Å300¸öCoo ......

JSP¶¯×÷

JSP¶¯×÷ÀûÓÃXMLÓï·¨¸ñʽµÄ±ê¼ÇÀ´¿ØÖÆServletÒýÇæµÄÐÐΪ¡£ÀûÓÃJSP¶¯×÷¿ÉÒÔ¶¯Ì¬µØ²åÈëÎļþ¡¢ÖØÓÃJavaBean×é¼þ¡¢°ÑÓû§Öض¨Ïòµ½ÁíÍâµÄÒ³Ã桢ΪJava²å¼þÉú³ÉHTML´úÂë¡£
JSP¶¯×÷°üÀ¨£º
jsp:include£ºÔÚÒ³Ãæ±»ÇëÇóµÄʱºòÒýÈëÒ»¸öÎļþ¡£
jsp:useBean£ºÑ°ÕÒ»òÕßʵÀý»¯Ò»¸öJavaBean¡£
jsp:setProperty£ºÉèÖÃJavaBeanµÄÊôÐÔ¡£ ......

ÍøÕ¾Ò³Ãæ×Ô¶¯ÌøתʵÏÖ·½·¨PHP¡¢JSPµÈ


×Ô¶¯×ªÏò£¬Ò²½Ð×Ô¶¯Öض¨Ïò¡£×Ô¶¯Ìøת£¬Ö¸µ±·ÃÎÊÓû§µÇ½µ½Ä³Íøվʱ£¬×Ô¶¯½«Óû§×ªÏòÆäËüÍøÒ³µØÖ·µÄÒ»ÖÖ¼¼Êõ¡£×ªÏòµÄÍøÒ³µØÖ·¿ÉÒÔÊÇÍøÕ¾ÄÚµÄÆäËüÍøÒ³£¬Ò²¿ÉÒÔÊÇÆäËüÍøÕ¾¡£Í¨³£Çé¿öÏ£¬ä¯ÀÀÆ÷»áÊÕµ½Ò»¸öÍøÒ³£¬¸ÃÒ³Ã溬ÓÐ×Ô¶¯¼ÓÔØÒ»ÆäËüÍøÒ³µÄ´úÂë¡£¸ÃÒ³ÃæÓпÉÄÜÔÚ·þÎñÆ÷¶Ë±»×ª»»£¬ÕâÑùµÄ»°£¬ä¯ÀÀÆ÷Ö»ÊÕµ½Ò»¸öÒ³Ã棬¶ø×Ô¶¯×ª ......

JSPÖж¯Ì¬INCLUDEÓ뾲̬INCLUDEµÄÇø±ð

ÎÒÃǶ¼ÖªµÀÔÚjspÖÐincludeÓÐÁ½ÖÖÐÎʽ,·Ö±ðÊÇ
    <%@ include file=" "%>
    <jsp:include page=" " flush="true"/>
    Ç°ÕßÊÇÖ¸ÁîÔªËØ¡¢ºóÕßÊÇÐÐΪԪËØ.
    ͨ³£µ±Ó¦ÓóÌÐòÖÐËùÓеÄÒ³ÃæµÄijЩ²¿·Ö(ÀýÈç±êÌâ¡¢Ò³½ÅºÍµ¼º½À¸)¶¼ÏàͬµÄʱºò,Î ......

jspºÍÊý¾Ý¿âÁ¬½Ó´óÈ«

ÏÂÃæµÄjspºÍÊý¾Ý¿âÁ¬½Ó´óÈ«£¬Çë²Î¿¼
Ò»¡¢jspÁ¬½ÓOracle8/8i/9iÊý¾Ý¿â£¨ÓÃthinģʽ£©
testoracle.jspÈçÏ£º
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Stri ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ