css+jsp tagʵÏÖÊ÷ÐͲ˵¥
ÎÒÃǵĿª·¢·½Ê½ÊÇÓÉdemoÈËÔ±Íê³ÉϵͳµÄ¾²Ì¬Ò³Ã棬²¢Í¨¹ýcss½øÐÐÃÀ»¯¡£
Ϊ×î´ó¿ÉÄÜÀûÓÃÃÀ¹¤Íê³ÉµÄ¾²Ì¬Ò³Ã棬ÎÒÃÇÐèÒª¾¡Á¿¼õÉÙ¶ÔÔhtmlµÄ³å»÷£¬Òò´ËÎÒÊ×ÏÈÏëµ½µÄFreemarker¡£
µ«ÊÇFreemarker×îÖÕÈÃÎÒ¿Õϲһ³¡£¬×îÖÕ×Ô¶¨ÒåÁËÒ»¸ö¿ÉÒԵݹéǶÌ×µÄjsp tagÀ´´ïµ½Õâ¸öÄ¿µÄ¡£
ÏÂÃæÊǽâ¾öÕâ¸öÎÊÌâµÄ¹ý³Ì£º
ÓÃcssÄ£°æsdmenuÀ´ÊµÏÖϵͳ²Ëµ¥£¬¾²Ì¬htmlÈçϸñʽ£º
<div style="float: left" id="my_menu" class="sdmenu">
<div>
<span>Email Template</span>
<a href="#" target="mainFrame">Welcome Notes</a>
<a href="#" target="mainFrame">Deposit Reminder</a>
<a href="#" target="mainFrame">Final Payment</a>
<a href="#" target="mainFrame">Recommendation Message</a>
</div>
<div>
<span>Parameter Manage</span>
<a href="#" target="mainFrame">List all parameters</a>
</div>
……
</div>
¿ªÊ¼×¼±¸ÓÃFreemarkerÀ´¸ã¶¨£¬Éè¼ÆFreemarkerÄ£°æ¸ñʽΪ£º£¨¶¨ÒådescÊÇx¶ÔÏóÏÂÃæ¸öÒ»¸ölistÊôÐÔ£©
<#list listObj as x>
x
<#list ${x.desc} as y>
y
</#list>
</#list>
ÔÀ´µ£ÐÄ<#list>£¬²»ÄÜÖ§³ÖǶÌ×£¬½á¹ûÓÃ1..countµÄÑ»··½Ê½£¬·¢ÏÖÍêÈ«¿ÉÒÔǶÌ×Ñ»·£¬°µÏ²¡£
µ«ÊǺܿ죬²»ÐÒµÄÊÂÇ黹ÊdzöÏÖÁË£¬Freemarker²»Ö§³Ö<#list ${x.desc} as y>ÕâÑùд¡£
һʱ·ßÅ£¬×¼±¸¸ÄдFreemarker£¬µ«ÊÇÏëÏë¸ÄÁË£¬Ò²²»ÖªµÀÔõôÌá½»µ½FreemarkerÏîÄ¿ÖС£
»¹ÊDz»×öÄǸù´ÐËãÁË¡£
¾À½áÖ®ºó£¬¾ö¶¨×Ô¶¨ÒåtagÀ´½â¾öÕâ¸öÎÊÌâ¡£
ÏÈÉè¼ÆtagµÄд·¨
<ui:list listName="list" scope="request">
<div>
<span>__menuName__</span>
<ui:list listName="sublist" scope="parent
Ïà¹ØÎĵµ£º
ÊÇÔÚstruts2ÏÂÒª½â¾ö¸ÃÎÊÌ⣬ÐèÒªÁ½¸öÌõ¼þ£º
1¡¢È·±£¸ÃÓ¦ÓÃΪJ2EEµÄÓ¦Ó㬼´ÔÚweb.xmlϱ£Ö¤ÓÐÒÔÏÂÅäÖÃÐÅÏ¢£º
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSche ......
ʯ¼ÒׯÌáÉýÍøÕ¾ÐÔÄܵķ½Ê½Óкܶ࣬ÀýÈçÓÐЧµÄʹÓûº´æ£¬Éú³É¾²Ì¬Ò³ÃæµÈµÈ¡£½ñÌìҪ˵µÄ¾Í
ÊÇÉú³É¾²Ì¬Ò³ÃæµÄ·½Ê½¡£
ʲô½ÐÉú³É¾²Ì¬Ò³ÃæÄØ£¿ºÜ¼òµ¥£¬ÀýÈçÎÒÃÇÈç¹û·ÃÎÊÒ»¸öÁ´½Ó http://xyz.com/index.do£¬
ÄÇô·þÎñÆ÷¾Í»á½âÎöÕâ¸öÇëÇó£¬ÈÃÌض¨µÄAction È¥´¦Àí¡£ÕâÆäÖеÄȱµãÊÇÏÔ¶øÒ×¼ûµÄ£ºÈç¹û
·ÃÎʵÄÈË£¬ÄÇô¾Í»á¼ÓÖØÓ¦Ó÷ ......
JAVA/JSPÀà±ÏÒµÉè¼Æ
ÈôÓкÏÊÊÄúµÄÉè¼Æ£¬Çë¸æËßÎÒÏêϸ˵Ã÷µÄÍøÖ·£¡Ð»Ð»ºÏ×÷£¡
±àºÅ ÌâÄ¿ ¿ª·¢¹¤¾ß ÄÚÈÝ ×ÊÁÏ·Ñ Ïêϸ˵Ã÷
001JVSQL °ì¹«×Ô¶¯»¯ÏµÍ³ JAVA JAVAÔ´´úÂë+±ÏÒµÂÛÎÄ+¿ªÌⱨ¸æ+´ð±ç¸å £¤180 Ïêϸ˵Ã÷
002JVAC ѧÉúÐÅÏ¢¹ÜÀíϵͳ JAVA JAVAÔ´´úÂë+±ÏÒµÂÛÎÄ+¿ªÌⱨ¸æ+´ð±ç¸å £¤180 Ïêϸ˵Ã÷
004JVAC ͼÊé¹Ý¹ÜÀí ......
×÷Õß: Dudu, ¡¡³ö´¦:ITר¼ÒÍøÂÛ̳,¡¡ÔðÈαà¼: ³Â×Óç÷,¡¡
2009-09-18 13:00
¡¡¡¡CLOB¿ÉÓÃÓÚ´æ·Å´óÎı¾Êý¾Ý,×î¶à¿É´æ´¢4GBÊý¾Ý,ÔÚÓ¦Óÿª·¢ÖбȽϳ£¼û.javaÌṩµÄsql.ClobÀàÓëÖ®¶ÔÓ¦.ËüÌṩÁ½¸ö·½·¨À´¶ÁÈ¡ClobµÄÊý¾Ý:
¡¡¡¡ÓÃORACLE9i¡¢oracle8¡¢Óкܳ¤µÄÒ»¶Îʱ¼ä£¬ÎÒ°ÑÓÃÓÚJSPÖÐÐèҪעÒâµÄÎÊÌâÔÚÕâÀïд³öÀ´£¬½ö¹©´ó¼Ò²Î¿¼Á ......
1. RequestDispatcher.forward()
ÊÇÔÚ·þÎñÆ÷¶ËÆð×÷ÓÃ,µ±Ê¹ÓÃforward()ʱ,Servlet engine´«µÝHTTPÇëÇó´Óµ±Ç°µÄServlet or JSPµ½ÁíÍâÒ»¸öServlet,JSP »òÆÕͨHTMLÎļþ,Ò²¼´ÄãµÄformÌá½»ÖÁa.jsp,ÔÚa.jspÓõ½ÁËforward()Öض¨ÏòÖÁb.jsp,´ËʱformÌá½»µÄËùÓÐÐÅÏ¢ÔÚ b.jsp¶¼¿ÉÒÔ»ñµÃ,²ÎÊý×Ô¶¯´«µÝ. µ«forward()ÎÞ·¨Öض¨ÏòÖÁÓÐframe ......