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

struts html:link±êÇ©µÄÓ÷¨

struts html:link±êÇ©µÄÓ÷¨£¨×ª£©
¹ØÓÚ<html:link>±êÇ©ÔÚURIºóÃæ´«²ÎÊýµÄÎÊÌâ
ÔÚstruts±êÇ©<html:link>µÄpageÊôÐÔÖ¸¶¨µÄURIºóÃæ´«µÝ²ÎÊý¿ÉÒÔÓм¸ÖÖ·½Ê½£º
1.ÈôÃ÷È·²ÎÊýÃûºÍ²ÎÊýÖµÔòÖ±½ÓÔÚURIºóÊä³ö£¬
È磺<html:link page="/test.do?action=add">add</html:link>
2.¶ÔÓÚ²ÎÊýÖµ²»È·¶¨µÄ£¬paramNameºÍparamPropertyÀ´Êä³ö£¬ÓÃparamIdÊôÐÔÖ¸¶¨²ÎÊýÃû¡£
¶ÔÓÚparamNameÖ¸¶¨µÄ¶ÔÏóÓ¦¸Ã´æÔÚÓÚpage¡¢request¡¢session¡¢applicationÆäÖÐÖ®Ò»¡£Ò»°ãÀ´Ëµ£¬ÊÇ´ÓActionÀà´«¹ýÀ´µÄ£¬×÷ΪrequestµÄÊôÐÔÖ®Ò»£¨requst.setAttribute("name",object)£©¡£
Èç¹ûparamNameÖ¸¶¨µÄ¶ÔÏóÊÇactionµÄActionForm£¬ÔòÎÞÐèʹÓÃrequest.setAttribute·½·¨¡£
Àý£º<html:link page="/test.do" paramId="userid" paramName="uid">uname</html:link>
Èô²ÎÊýÖµÊÇÒ»¸öbean¶ÔÏóµÄÊôÐÔÖµ£¨±ÈÈçActionForm,»òÕß¼¯ºÏÖдæ·ÅµÄ¶ÔÏó£©Ôò£º
<html:link page="/test.do" paramId="userid" paramName="user" paramProperty="uid">uname</html:link>
3.ÈôÁ½¸ö²ÎÊý£¬Ò»¸öÈ·¶¨Ò»¸ö²»È·¶¨£¬ÔòÊÇÒÔÉÏÁ½ÖÖ·½·¨µÄ½áºÏ£¬¼´£º
<html:link page="/test.do?action=modify" paramId="userid" paramName="uid">modify</html:link>
4.¶ÔÓÚ¶à¸ö²ÎÊýµÄÎÊÌ⣬¿ÉÒÔʹÓÃÒ»¸öHashMap¼¯ºÏ¶ÔÏóÀ´´æ·ÅËùÓеIJÎÊýÃû¼°¶ÔÓ¦µÄ²ÎÊýÖµµÄ·½Ê½£¬paramNameÊôÐÔÖµÖ¸¶¨Îª¸ÃHashMap¼¯ºÏ¶ÔÏó¼´¿É¡£
¾ÙÀý£º
<%
//´úÂëÀíÏëµÄλÖÃÓ¦¸ÃÊÇÔÚactionÖÐ
//¿ÉÒÔÔÚjspÒ³Ãæ²âÊÔ
java.util.HashMap pms = new java.util.HashMap();
pms.put("code", "001002");
pms.put("name", "tester");
pms.put("alias", new String[]{"matin","jack"});
request.setAttribute("params", pms);
%>
<html:link action="/test.do" name="params" >test</html:link>
±àÒëºóµÄ½á¹û£º<a href="/test.do?code=001002&name=tester&alias=matin&alias=jack">test</a>
ÕâÖÖ·½Ê½ËäÈ»¿ÉÒÔ½â¾ö´«¶à²ÎÊýµÄÎÊÌ⣬µ«ÊÇʵÏÖÆðÀ´Ò²±È½ÏÂé·³£¬ÌرðÊǶԼǼ¼¯ÖеÄÊý¾ÝÖðÌõÁгöµÄʱºò
5.Õë¶ÔÓеÄÍøÓÑÔÚ<html:link>±êÇ©ÖÐǶÈëʹÓÃjsp½Å±¾(scriptlet)µÄÎÊÌ⣬
ÀýÈç:
<html:link page="/test.do?code=<%=varible%>">add</html:link>£¬ÕâÖÖд·¨ÊÇ´íÎóµÄ£¬ÊÇÎÞ·¨±àÒëµÄ¡£
ÓеÄÍøÓÑÈÏΪÔÚstruts±êÇ©ÄÚÊDz»ÔÊÐíʹÓÃjsp½Å±


Ïà¹ØÎĵµ£º

ת: JDK 6 ÖÐÎÄÎĵµÏÂÔصØÖ·(ZIP,HTML,CHM)

Ä¿Ç°ÔÚ http://developers.sun.com.cn ÒÑÕýʽÐû²¼·¢²¼Java SE 6 API ÖÐÎÄ°æ¡£
´ó¼ÒÒ²¿ÉÒÔ´ÓÒÔÏÂÍøÖ·ÏÂÔØ:
* HTML ¸ñʽ ( http://download.java.net/jdk/jdk-api-localizations/jdk-api-zh-cn/publish/1.6.0/html/zh_CN/api/index.html  )
* zip ¸ñʽ ( http://download.java.net/jdk/jdk-api-localizations/jdk-api ......

htmlÏà¹ØÓï·¨¡¾×ª¡¿

<! - - ... - -> ×¢½â
<!> ÅÜÂíµÆ
<marquee>...</marquee>ÆÕͨ捲¶¯
<marquee behavior=slide>...</marquee>»¬¶¯
<marquee behavior=scroll>...</marquee>Ô¤Éè捲¶¯
<marquee behavior=alternate>...</marquee>À´»Ø捲¶¯
<marq ......

HTML¡¢SHTML¡¢DHTML¡¢XHTML¡¢XMLÇø±ð


HTML £­ Hyper Text Mark-up Language £­ ³¬Îı¾±ê¼ÇÓïÑÔ
     HTML-³¬Îı¾±ê¼ÇÓïÑÔ£¬ÊÇWWWµÄÃèÊöÓïÑÔ¡£Éè¼ÆHTMLÓïÑÔµÄÄ¿µÄÊÇΪÁËÄÜ°Ñ´æ·ÅÔÚһ̨µçÄÔÖеÄÎı¾»òͼÐÎÓëÁíһ̨µçÄÔÖеÄÎı¾»òͼÐη½±ãµØÁªÏµÔÚÒ»Æð£¬ÐγÉÓлúµÄÕûÌ壬ÈËÃDz»Óÿ¼ÂǾßÌåÐÅÏ¢ÊÇÔÚµ±Ç°µçÄÔÉÏ»¹ÊÇÔÚÍøÂçµÄÆäËüµçÄÔÉÏ¡£ÎÒÃÇÖ» ......

HTML±êÇ©×ܽá


HTMLµÄ»ù±¾½á¹¹
<HTML> ----------------------------------------      ¿ªÊ¼±êÇ©
<HEAD>    --------------------------------------
<TITLE> Ò»¸ö¼òµ¥µÄHTMLʾÀý </TITLE>           &nbs ......

6¸ö²»³£ÓõÄHTML±ê¼Ç

ͻȻһ´Î£¬ÏëÊäÈëÉÏϱ꣬editor²»Ö§³Ö£¬ÓÚÊǺõËѵÃÒÔ϶«¶«¡£ ÓеÄHTML±êÇ©Äã¿ÉÄÜ´ÓδʹÓùý£¬²»ÊÇÒòΪÄãǷȱѧϰ¾«Éñ£¬¶øÊÇËüÃÇȷʵÓô¦²»´ó¡£Èç¹ûÄãÓÐ̽Ë÷¾«Éñ£¬ÄǾͽÓ×ÅÍùÏ¿´°É¡£ µÚÒ»¸ö£ºabbr »ò acronym
ÕâÁ½¸ö±êʶÊÇÒ»»ØÊ£¬Ö÷ÒªÊÇÓÃÓÚһЩӢÓïµÄËõд£¬µ±Äã°ÑÊó±êÒÆÉÏÈ¥µÄʱºò£¬Äã»á·¢ÏÖ»á³öÏÖÒ»¸öСÌáʾÀ´Ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ