html:link ¸÷¸öÊôÐÔ½âÊͼ°Ó÷¨
<html:link> ±êÇ©ÓÃÓÚÉú³ÉHTML <a> ÔªËØ¡£<html:link> ÔÚ´´½¨³¬Á´½Óʱ£¬ÓÐÁ½¸öÓŵ㣺
(1) ÔÊÐíÔÚURL ÖÐÒÔ¶àÖÖ·½Ê½°üº¬ÇëÇó²ÎÊý¡£
(2) µ±Óû§ä¯ÀÀÆ÷¹Ø±ÕCookie ʱ£¬»á×Ô¶¯ÖØÐ´URL£¬°ÑSessionID ×÷ΪÇëÇó²ÎÊý°üº¬ÔÚURL ÖУ¬ÓÃÓÚ¸ú×ÙÓû§µÄSession ״̬¡£
<html:link> ±êÇ©ÓÐÒÔÏÂÖØÒªÊôÐÔ£º
(1) forward£ºÖ¸¶¨È«¾Öת·¢Á´½Ó¡£
(2) href£ºÖ¸¶¨ÍêÕûµÄURL ¼ü½Ó¡£
(3) page£ºÖ¸¶¨Ïà¶ÔÓÚµ±Ç°ÍøÒ³µÄURL¡£
<html:rewrite> ÓÃÓÚÊä³ö³¬Á´½ÓÖеÄURI²¿·Ö£¬µ«Ëü²¢²»Éú³ÉHTML <a> ÔªËØ¡£URIÖ¸µÄÊÇURL ÖÐÐÒé¡¢Ö÷»úºÍ¶Ë¿ÚÒÔºóµÄÄÚÈÝ¡£URI ÓÃÓÚÖ¸¶¨¾ßÌåµÄÇëÇó×ÊÔ´¡£ÀýÈ磬¶ÔÓÚURL£ºHTTP£º//localhost:8080/HtmlBasic.do£¬ËüµÄURIΪ /HtmlBasic.do
ʾÀý£º
1¡¢´´½¨È«¾Öת·¢Á´½Ó
Ê×ÏÈ£¬ÔÚStruts-config.xml ÖÐ<global-forwards> ÔªËØÖж¨ÒåÒ»¸ö<forward> ÔªËØ£º
<global-forwards>
<forward name = "index" path="/index.jsp"/>
</global-forwards>
½Ó×Å£¬ÔÚJSP ÎļþÖд´½¨<html:link> ±êÇ©£º
<html:link forward="index">
Link to Global ActionForward
</html:link>
<html:link> ±êÇ©µÄforward ÊôÐÔºÍ<global-forwards> ÔªËØÖеÄ<forward> ×ÓÔªËØÆ¥Åä¡£ÒÔÉÏ´úÂëÉú³ÉÈçÏÂHTML ÄÚÈÝ£º
<a href="/index.jsp" mce_href="index.jsp">Link to Global ActionFoward</a>
ÖµµÃ×¢ÒâµÄÊÇ£¬<html:link> µÄforward ÊôÐÔÖ»ÒýÓÃStruts-config.xml ÅäÖÃÎļþÖÐ<global-forwards>ÄÚµÄ<forward> ×ÓÔªËØ£¬Èç¹ûÒýÓÃ<action> ÄÚµÄ<forward> ×ÓÔªËØ£¬ÔÚÔËÐÐʱ½«»áÅ׳öÒì³££º
Cannot c
Ïà¹ØÎĵµ£º
ÀýÈç´Ó1.htmlÌø×ªµ½2.html£º
ÔÚ1.htmlÖУº
¡¡¡¡<form name="loginForm" action="2.htm?pageid=1&str='s'" method="post">
µ±Ò³ÃæÌá½»Ìø×ªµ½2.htmlÖУº
<script type="text/javascript">
<!--
var str = location.search;
//-->
&l ......
CSDN²©¿Í£ºhttp://writeblog.csdn.net/PostList.aspx
·½·¨Ò»£ºÓüÇʱ¾´ò¿ªindex.htm£¬Ìæ»»£º10pt ---> 12pt£¬±£´æºó£¬ÓÃIE´ò¿ª´Ëhtm£¬ctrl+a--ctrl+c£¬Õ³Ìùµ½²©¿Í¾ÍÐÐÁË£¡
·½·¨¶þ£ºÔÚcsdn·¢±íÎÄÕÂʱ£¬Ñ¡Ôñ¡¾Í¼Ïñ¡¿ºóÃæµÄ¡¾HTML¡¿°´Å¥£¬ÔÙ°Ñindex.htmÔ´ÂëÕ³ÌùÉÏÈ¥£¬Ê²Ã´Ò²²»ÓøĶ¯£¡ ......
ģ̬¶Ô»°¿òµã»÷Á´½Ó²»´ò¿ªÐ´°¿Ú
·½·¨1£º
ÔÚģ̬´°¿ÚÒ³ÃæÀï¼ÓÉÏ£º
<head>
<base target=_self >
</head>
''<base target=_self > ''·Åµ½<head>±êÇ©ÄÚ
·½· ......
×î½üÑо¿PHPµÄһЩ¿ª·¢¼¼Êõ£¬·¢ÏÖPHPÓкܶàASPËùûÓеÄÓÅÐ㹦ÄÜ£¬¿ÉÒÔÍê³ÉһЩÒÔǰÎÞ·¨Íê³ÉµÄ¹¦ÄÜ£¬ÀýÈ綯̬Éú³ÉHTML¾²Ì¬Ò³Ã棬ÒÔ¼õÉÙ·þÎñÆ÷CPUµÄ¸ºÔØ£¬Ìá¸ßÓû§·ÃÎʵÄËÙ¶È¡£
¡¡¡¡ÎÒÃÇÖªµÀ£¬PHP¶ÁÈ¡MYSQL¶¯Ì¬ÏÔʾ£¬ÔÚ·ÃÎÊÁ¿´óµÄÇé¿öÏ£¬»áÓкܶàÐÔÄÜÎÊÌ⣬Èç¹û×âÓñðÈ˵ÄÐéÄâÖ÷»ú£¬Ôò»áÒòΪCPUÏûºÄ¹ý¶à¶ø±»ÏÞÖÆCPU£¬µ¼ÖÂÍø ......
ÎļþÀàÐÍ <HTML></HTML> £¨·ÅÔÚµµ°¸µÄ¿ªÍ·Óë½á⣩
ÎļþÖ÷Ìâ <TITLE></TITLE> £¨±ØÐë·ÅÔÚ¡¸ÎÄÍ·¡¹Çø¿éÄÚ£©
ÎÄÍ· <HEAD></HEAD> £¨ÃèÊöÐÔ×ÊÁÏ£¬ÏñÊÇ¡¸Ö÷Ì⡹£©
ÎÄÌå <BODY></BODY> £¨Îļþ±¾Ì壩
½á¹¹ÐÔ¶¨Ò壨ÓÉä¯ÀÀÆ÷¿ØÖƵÄÏÔʾ·ç¸ñ£©
±êÌâ <H?></H?> ......