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

JSP iterator


JSPÖнá¹û¼¯ÏÔʾÈçÏ£º
    
<
ww:iterator
 
value
=
"resultList"
 
status
=
"status"
>
    
<
tr
 
class
=
"<ww:if test="
#status.even"
>
row-even
</
ww:if
>
<
ww:else
>row-odd
</
ww:else
>
"
>
        <
td
>
            <ww:property value=""/>
        </
td
>
     </
tr
>
   </
ww:iterator
>
Ñùʽ±í¿ÉÒԲο¼£º
   .row-even{background-color:#def7c2;}  /*żÊýÐÐÑùʽ*/
   .row-odd{background-color:#c8e7a6;}   /*ÆæÊýÐÐÑùʽ*/
³ýÁËʹÓÃ#status.evenÅжÏÊÇ·ñżÊýÐÐÍ⣬»¹ÓÐÆäËû¼¸¸öÊôÐÔ¿ÉÒÔʹÓãº
   #status.odd        ÊÇ·ñÆæÊýÐÐ
   #
status.count    µ±Ç°ÐÐÊý
   #
status.index    µ±Ç°ÐеÄÐòºÅ£¬´Ó0¿ªÊ¼[#status.count=#status.index+1]
   #
status.first     ÊÇ·ñµÚÒ»ÐÐ
   #
status.last      ÊÇ·ñ×îºóÒ»ÐÐ
   #
status.modules(int)  µ±Ç°ÐÐÊýÈ¡Ä£


Ïà¹ØÎĵµ£º

JSPÖÐincludeÖ¸ÁîºÍincludeÐÐΪÇø±ð

 ÎÒÃǶ¼ÖªµÀÔÚjspÖÐincludeÓÐÁ½ÖÖÐÎʽ,·Ö±ðÊÇ
<%@ include file=” ”%>
<jsp:include page=” ” flush=”true”/>
    Ç°ÕßÊÇÖ¸ÁîÔªËØ¡¢ºóÕßÊÇÐÐΪԪËØ¡£¾ßÌåËüÃǽ«Ôںδ¦Óã¿ÈçºÎÓü°ËüÃÇÓÐʲôÇø±ð£¿ÕâÓ¦¸ÃÊǺܶàÈË¿´ ......

JSPÖÐerrorPageµÄÎÊÌâ

           µ±ÔÚJSPµÄpageÖ¸ÁîÖÐÉèÖÃerrorPage="url"¾Í¿ÉÒÔÉèÖô¦ÀíÒ쳣ʼþµÄJSPÎļþ¡£Èç¿ÉÒÔÕâÑùд£º
                <%@ page errorPage="error.jsp" %>
           ÕâÑùµÄ»°£¬µ±Ò³ÃæÖгöÏÖÒì³£µÄÊ ......

jspÓëSQL Server 2000 µÄÁ¬½Ó

ÖÕÓڸ㶨JSPÁ¬½ÓSQL Server 2000Êý¾Ý¿âµÄÎÊÌâÁË
2008Äê01ÔÂ29ÈÕ ÐÇÆÚ¶þ 15:54
    Ç°¼¸Ì죬ƽƽͬѧһֱÔÚ¸ãJSP Á¬½ÓSQL Server 2000Êý¾Ý¿âµÄÎÊÌ⣬һֱÁ¬²»ÉÏ£¬È»ºó½ÐÎÒÈ¥°ïËû¿´¿´£¬Æ¾×ÅÒÔÇ°µÄ¾­Ñ飬¸ãÁËÒ»¸öÏÂÎ磬ºÙºÙ£¡ÖÕÓÚ°ïËûÁ¬½ÓÉÏÁË£¬Ö÷Òª²½ÖèÈçÏ£º
    1¡¢ÐèÒªµÄ¶«Î÷´ó¼Ò¿ÉÒÔµ½Î ......

5ÔÂ19ÈÕ JSP»ù´¡

1.essionÄڵĴæ·ÅµÄÊǶÔÏóµÄÒýÓÃ,ËùÒÔÐÞ¸ÄÄÚÖöÔÏóºó,²»ÐèÒªÖØзÅÖõ½sessionÖÐ
2.ÅäÖÃContext³õʼ»¯²ÎÊý
<Context-param>
<param-name></paran-name>
<param-value></param-value>
<Context-param>
this.getServletContext().getInitParameter(arg0);
--------------------- ......

JSPÖж¨Ê±¹Ø±ÕÒ³ÃæµÄJS¿Ø¼þ


JS´úÂë
<script
type="text/javascript">
function closewindow(){
 window.returnValue = true;
 window.close();
}
function clock(){
 i = i -1;
 if(document.getElementById("info")){
  document.getElementById("info").innerHTML
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ