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

<%@include ºÍ
   Ïàͬµã£º
   Èç¹û±»°üº¬½øÈ¥µÄÎļþÀïÃæÓÐcssÎļþµÄ»°£¬°üº¬µÄÒ³Ãæ»áÊܵ½±»°üº¬ÎļþµÄcssÑùʽµÄÓ°Ï죡
   ²»Í¬µã£º
<%@ include
file="date.jsp" %>
<jsp:include
page="date.jsp" flush="true"/>
include
±àÒëÖ¸ÁîÊÇÔÚ
JSP
³ÌÐòµÄת»»Ê±Æھͽ«
file
ÊôÐÔËùÖ¸¶¨µÄ³ÌÐòÄÚÈÝǶÈ룬ȻºóÔÙ±àÒëÖ´ÐУ»
»¹ÓоÍÊÇÈç¹û°üº¬.jspµÄÎļþµÄ»°£¬¾­³£Â·¾¶»á³öÏÖÎÊÌâ¡£
¶ø
include
Ö¸ÁîÔÚת»»Ê±ÆÚÊDz»»á±»±àÒëµÄ£¬Ö»ÓÐÔÚ¿Í»§¶ËÇëÇóʱÆÚÈç¹û±»Ö´Ðе½²Å»á±»¶¯Ì¬µÄ±àÒëÔØÈë
Ö»Éú³ÉÒ»¸ö
class
Îļþ
¶à¸ö
Include
²»ÄÜ´ø²ÎÊý
 
<jsp:include>
¿ÉÒÔ
 
ͬһ¸ö
request
¶ÔÏó
²»Í¬µÄ
request
¶ÔÏ󣬿ÉÒÔÈ¡µÃ°üº¬ËüµÄÒ³ÃæµÄ²ÎÊý£¬²¢Ìí¼ÓÁË×Ô¼ºµÄ²ÎÊý
³£ÓÃ
²»³£ÓÃ


Ïà¹ØÎĵµ£º

JSPÓëSevletµÄÏ໥ͨÐÅ·½Ê½(¶þ)

Servlet£º
ÔÚServletÖУ¬ÌøתÔÚdoGet»òÕßdoPost·½·¨ÖÐʵÏÖ¡£
<1>redirectʵÏÖÒ³ÃæÌøת£º
 response.sendRedirect("/login.jsp");
 ·½·¨µÄ²ÎÊýÊÇÏà¶Ô·¾¶£¬É趨Õâ¸ö²ÎÊý¿ÉÒÔʹҳÃæÌøתµ½ÈκÎÒ³Ã棬°üÀ¨www.baidu.comµÈÍøÂçÒ³Ãæ¡£
 ÌøתºóÄã¿ÉÒÔ·¢ÏÖµØÖ·À¸·¢ÉúÁ˱仯¡£
 µ×²ãÔ­Àí£ºÊ¹ÓÃredir ......

̸JSPÓëXMLµÄ½»»¥

̸JSPÓëXMLµÄ½»»¥
ʹÓÃJavaServer PagesÓÐÈýÖÖ²»Í¬µÄ·½·¨ÓÃÓÚ´¦ÀíXMLÎĵµ£¬Ã¿ÖÖ·½·¨¶¼ÓÐÀûÓÚÌá¸ß·ÖÀëÒ³Ãæ´úÂëÓëXMLÊý¾ÝµÄˮƽ£¬ÓÐÀûÓÚ¼ò»¯¿ª·¢ÍøÒ³µÄ¸´ÔӶȲ¢ÇÒ¸ÄÉÆÌá¸ß×é¼þÓëÒ³Ãæ´úÂëµÄ¿ÉÖØÓÃÐÔ¡£
¡¡¡¡JavaServer Pages ( JSP)ºÍXMLÊÇSunµÄJ2EEµÄÁ½¸öÖÁ¹Ø½ôÒªµÄ×é¼þ¡£ JSPÊÇÓÃÓÚ´´½¨Ó¦ÓóÌÐò·þÎñÆ÷¶Ë³ÌÐòµÄÓÐЧ¹¤¾ß£¬¶ø¿ ......

JSPһЩ±êÇ©, ¶ÔÓ¦µÄ java´úÂë

1.
<jsp:useBran id="cb" class="bean.CounterBean" >
</jsp:useBean>
¶ÔÓ¦´úÂ룺 <%CounterBean cb = new CounterBean();%>
2.
<jsp:setProperty name ="cb" property="count" value = "23"/> ¶ÔÓ¦´úÂ룺
<%-- cb.setCount(Integer.paseInt("23"))- -%>
3.
<jsp:setProperty nam ......

JSPÖи÷ÖÖÄÚÖöÔÏó

JSPÖи÷ÖÖÄÚÖöÔÏó
 
web½»»¥µÄ×î»ù±¾µ¥Î»ÊÇhttpÇëÇó¡£Ã¿¸öÓû§´Ó½øÈëÍøÕ¾µ½À뿪ÍøÕ¾Õâ¶Î¹ý³Ì³ÆΪһ¸öHTTP»á»°£¬Ò»¸ö·þÎñÆ÷µÄÔËÐйý³ÌÖлáÓжà¸öÓû§·ÃÎÊ£¬¾ÍÊǶà¸öHTTP»á»°¡£×÷ÓÃÓò½âÊÍÈçÏ£º
1.application£º·þÎñÆ÷Æô¶¯µ½Í£Ö¹µÄÕâ¶Îʱ¼ä
2.session£ºHTTP»á·¢¿ªÊ¼µ½½áÊøµÄÕâ¶Îʱ¼ä
3.request£ºHTTPÇëÇó¿ªÊ¼µ½½áÊ ......

© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ