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

JSPËÄÖֻỰ¸ú×Ù¼¼Êõ

ת×Ô£ºhttp://blog.sina.com.cn/s/blog_5990faac0100dnfx.html
Cookie
£º·þÎñÆ÷ÔÚÒ»¸öÓ¦´ðÊײ¿´«µÝ¸øä¯ÀÀÆ÷µÄÃû³Æ
/
Öµ¶Ô¡£ä¯ÀÀÆ÷±£´æµÄʱ¼äÓÉ
cookie
µÄ¹ýÆÚʱ¼äÊôÐÔÀ´Ö¸¶¨¡£µ±ä¯ÀÀÆ÷Ïòij¸ö·þÎñÆ÷
·¢ËÍÒ»¸öÇëÇóʱ£¬Ëü»á¼ì²éÆä±£´æµÄ
cookie
£¬²¢ÔÚÇëÇóÊײ¿Öаüº¬´Óͬһ̨·þÎñÆ÷ÉϽÓÊÕµ½µÄËùÓÐ
cookie
¡£

Session tracking
:
ÔÚ
ä¯ÀÀÆ÷ºÍ·þÎñÆ÷Ö®¼ä²»Ö±½Ó´«ËÍËùÓеÄ״̬ÐÅÏ¢£¬¶øÖ»ÊÇ´«µÝ±íʾ·û£¨
session
ID
£©¡£ä¯ÀÀÆ÷·¢ËÍ
sessionID,
·þ
ÎñÆ÷¸ú×ÙÓë¸Ã»á»°Ïà¹ØÁªµÄËùÓÐÐÅÏ¢¡£´«µÝ
sessionID
¿ÉÒÔͨ¹ý
cookie
ºÍ
URL
¸´Ð´¼¼Êõ£¬´ó²¿·ÖÈÝÆ÷¶¼Ö§³ÖÕâÁ½ÖÖ¼¼Êõ¡£·þÎñÆ÷ÎÞ·¨·Ö±æÓû§ÊÇ·ñ¹Ø±ÕÁËä¯ÀÀÆ÷£¬Òò´Ë¹Ø±Õä¯ÀÀÆ÷Òâζ
×ÅÓëÏÈÇ°µÄ»á»°¹ØÁªµÄËùÓлỰÊý¾Ý¶¼±£ÁôÔÚ·þÎñÆ÷ÉÏ£¬Ö±µ½»á»°³¬Ê±£¬·þÎñÆ÷Ïú»Ù»á»°¶ÔÏñ¡£
®
¸ú×Ù
ͬһ»á»°ÖеÄÇëÇóµÄ»á»°
ID
¿ÉÒÔÓжàÖÖ·½·¨£¬Ö÷ÒªÓÐ
cookie
ºÍ
url
¸´Ð´¡£
URL
¸´Ð´
£º°Ñ»á»°
ID
±àÂëÔÚ
URL
ÖС£
         
Àý£º
counter.jjsp;jsessionnid=be8d697876787876befdbde898789098980
ÕâÑù£¬¼´Ê¹ä¯ÀÀÆ÷²»Ö§³Ö
cookie
£¬Ò²Äܹ»ÊµÏֻỰ¸ú×Ù¡£
¶ÔÓÚ
URL
¸´Ð´£¬·þÎñÆ÷´ÓÇëÇóµÄ
URI
ÖÐÌáÈ¡³ö»á»°
ID
£¬²¢°Ñ¸ÃÇëÇóÓë
ÏàÓ¦µÄ»á»°¹ØÁªÆðÀ´£¬È»ºóÔÚ·ÃÎʻỰÊý¾ÝµÄʱºò£¬
JSP
Ò³ÃæËù½øÐеĴ¦Àí·½Ê½¾ÍºÍʹÓÃ
cookie
¸ú×ٻỰ
id
ʱËùʹÓõķ½Ê½
ÍêÈ«Ïàͬ¡£ËùÒÔ
sesssion
µÄʵÏÖÒªÒÀ¿¿
cookie
»ò
URL
¸´Ð´¼¼Êõ¡£
Èç¹ûÏëΪ²»Ö§³Ö
cookie
µÄä¯ÀÀÆ÷Ìṩ»á»°¸ú×Ù£¬¾Í±ØÐëʹÓÃ
<c:url>
ÐÐΪ¶ÔÓ¦ÓóÌÐòÖеÄËùÓÐ
URL
½øÐи´Ð´¡£ÕâÒâζ×ÅÓ¦ÓóÌÐòÖеÄËùÓÐÒ³Ã棨ÖÁÉÙÊÇÄÇЩ´øÓжÔÆäËûÒ³ÃæÒýÓõÄÒ³Ã棩¶¼±ØÐëÊÇ
JSP
Ò³Ã棬ÕâÑù
Ò³ÃæÒýÓòÅÄÜÒÔ¶¯Ì¬·½Ê½½øÐбàÂ룬Èç¹ûÒÅ©ÁËÒ»¸ö
ur
£¬ÄÇô·þÎñ¾Í»áʧȥ¶Ô»á»°µÄ¸ú×Ù¡£
Òþ²Ø±íµ¥Óò
£ºÒþ²Ø±íµ¥ÓòÊǽ«»á»°IDÌí¼Óµ½HTMLµÄÒþ²Ø±íµ¥ÖÐ(ÀàÐÍΪhiddenµÄinput)¡£
Öض¨ÏòºÍת·¢
¿ÉÒÔʹÓÃÁ½ÖÖ·½·¨À´µ÷ÓÃÁíÒ»
¸öÒ³Ã棬Öض¨ÏòºÍת·¢¡£
i)
                
ת·¢£º
<jsp:forward
page=”userInfo.jsp”/>
ת·¢
,JSP
ÈÝÆ÷½«Ê¹ÓÃÒ»¸öÄÚ²¿·½·¨À´µ÷ÓÃÄ¿±êÒ³Ã棬еÄÒ³Ãæ¼ÌÐø´¦Àíͬһ¸öÇëÇ󣬶øä¯ÀÀÆ÷²»»áÖªµÀÕâ¸ö¹ý³ÌÉæ
¼°µ½Á˶à¸öÒ³Ãæ¡£ä¯ÀÀÆ÷
UR


Ïà¹ØÎĵµ£º

jsp¾ÅÖÖÄÚÖöÔÏó

request, reponse, out, session, application, config, pagecontext, page, exception.

Ò».request¶ÔÏ󣺸öÔÏó·â×°ÁËÓû§Ìá½»µÄÐÅÏ¢£¬Í¨¹ýµ÷ÓøöÔÏóÏàÓ¦µÄ·½·¨¿ÉÒÔ»ñÈ¡·â×°µÄÐÅÏ¢£¬¼´Ê¹ÓøöÔÏó¿ÉÒÔ»ñÈ¡Óû§Ìá½»ÐÅÏ¢¡£
1.Request¶ÔÏó¿ÉÒÔʹÓÃgetParameter(string s)·½·¨»ñÈ¡¸Ã±íµ¥Í¨¹ýtextÌá½»µÄÐÅÏ¢¡£È磺
Requ ......

JSP»ù´¡

Ò»¡¢JSP¼ò½é
JSP (Java Server Pages)ÊÇ·þÎñÆ÷¶ËµÄ½Å±¾ÓïÑÔ£¬ÊÇÒ»ÖÖÔÚHTMLÒ³ÃæÖмÓÈëJavaÓïÑÔ¶øÉú³É¶¯Ì¬Ò³ÃæµÄ¼¼Êõ£º¼ÓÈëÁËеıêÇ©£¨<%£¬%>£¬…£©¡£
JSPÊÇÒÔJavaºÍServletΪ»ù´¡¿ª·¢¶ø³ÉµÄ¶¯Ì¬ÍøÒ³Éú³É¼¼Êõ£¬ËüµÄµ×²ãʵÏÖÊÇJava Servlet¡£
JSPÒ³ÃæÓÉHTML´úÂëºÍǶÈëÆäÖеÄJava´úÂëËù×é³É¡£·þÎñÆ÷ÔÚÒ³Ãæ±»¿Í» ......

jsp´«µÝÖÐÎIJÎÊý¡¢¿Õ¸ñÒÔ¼°±íµ¥ÄÚÈÝ»»ÐÐÎÊÌâ½â¾öС½á


¹Ø¼ü×Ö: jsp´«µÝÖÐÎIJÎÊý¡¢¿Õ¸ñÒÔ¼°±íµ¥ÄÚÈÝ»»ÐÐÎÊÌâ½â¾öС½á

ÔÚÀàËÆÁôÑÔ°åµÄwebÓ¦ÓÃÖУ¬ÐèÒª½«<textarea>ÖеĴó¶ÎÎÄ×ÖÏÔʾÔÚJspÒ³ÃæÉÏ£¬Òò´ËÐèÒª¶ÔÎÄ×ÖÖеÄÌØÊâ×Ö·ûÈç»»ÐС¢¿Õ¸ñµÄ×÷´¦Àí£¬·½·¨ÈçÏ£º
1¡¢Ö±½Ó±£´æ£¬È»ºóµ±´ÓÊý¾Ý¿âÖÐÈ¡³öÀ´Ê±ÓùýÂË·½·¨¹ýÂËÒ»±éÔÙËÍ»ØÒ³Ãæ¼´¿É£¬¸øÒ ......

java³ÌÐòÖе÷ÓÃÉãÏñͷʵÏÖjsp³ÌÐòÉãÏñÍ·Êý¾Ý²É¼¯

½üÆÚµÄÒ»¸öÏîÄ¿ÐèҪʵÏÖÉãÏñͷͼÏñ²É¼¯£¬¾­¹ýһϵÁеÄÕÛÌÚÒÔºó£¬ÖÕÓÚʵÏÖÁËÕâ¸ö¹¦ÄÜ£¬ÏÖÕûÀíһϡ£
±¾Éí¾Íjava¼¼ÊõÀ´Ëµ£¬ÒªÊµÏÖÉãÏñÍ·¶þ´Î¿ª·¢£¬²É¼¯ÉãÏñͷͼƬ£¬ÐèҪʹÓõ½JMF£¬JMFÊʺÏʹÓÃÔÚj2se³ÌÐòµ±ÖУ¬ÎÒÐèÒªÔÚweb³ÌÐòÖе÷ÓÃÉãÏñÍ·£¬ºÜÃ÷ÏÔJMFÊǸ㲻¶¨ÁË£¬Ïë¹ýдһ¸öapplet³ÌÐò£¬Ö»ÊÇÄǶ«Î÷ÒªÇó¿Í»§¶Ë±ØÐëÒªÓÐjre»·¾ ......

jspÁ¬½Ósql2005

ÔÚ¹ÜÀí¹¤¾ßÀïÃæÓÐÊý¾ÝÔ´   Ñ¡ÔñsqlÊý¾ÝÔ´
ÔÚ´úÂëÖУº
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page  import="java.sql.*"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content= ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ