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

²»¼ä¶ÏÑ­»·¹ö¶¯Í¼Æ¬£¬jspÍøÒ³´úÂë

<html>
 <head>
  <title>marquee</title>
  <style>
   #marq {
    width:500px;
    height:100px;
    border:1px solid red;
    overflow:hidden;
   }
   #marq img{
    width:100px;
    height:70px;
   }
  </style>
 </head>
 <body>
  <div id="marq">
   <table>
    <tr>
     <td id="bd">
      <table border="0">
       <tr>
        <td><img src="images/1.jpg"/></td>
        <td><img src="images/2.jpg"/></td>
        <td><img src="images/2.jpg"/></td>
        <td><img src="images/2.jpg"/></td>
        <td><img src="images/2.jpg"/></td>
        <td><img src="images/2.jpg"/></td>
        <td><img src="images/3.jpg"/></td>
       </tr>
      </table>
     </td>
     <td id="shadow">
     </td>
    </tr>
   </table>
  </div>
  <div id="sh"></div>
 </body>
 <script>
  var marq = document.getElementById("marq");
  var bd = document.getElementById("bd");
  var shadow = document.getElementById("shadow");
  var sh = document.getElementById("sh");
  shadow.innerHTML = bd.inner


Ïà¹ØÎĵµ£º

JSP

 1  forward ºÍredirectµÄÇø±ð
     Ò»¾ä»°£¬×ª·¢ÊÇ·þÎñÆ÷ÐÐΪ£¬Öض¨ÏòÊÇ¿Í»§¶ËÐÐΪ¡£ÎªÊ²Ã´ÕâÑù˵ÄØ£¬Õâ¾ÍÒª¿´Á½¸ö¶¯×÷µÄ¹¤×÷Á÷³Ì£º
ת·¢¹ý³Ì£º¿Í»§ä¯ÀÀÆ÷·¢ËÍhttpÇëÇó----¡·web·þÎñÆ÷½ÓÊÜ´ËÇëÇó--¡·µ÷ÓÃÄÚ²¿µÄÒ»¸ö·½·¨ÔÚÈÝÆ÷ÄÚ²¿Íê³ÉÇëÇó´¦ÀíºÍת·¢¶¯×÷----¡·½«Ä¿±ê×ÊÔ´·¢Ë͸ø¿Í»§£»ÔÚÕâÀï£ ......

JSPÂÒÂëÎÊÌâ.

 ÔÚTomcatµÄserver.xmlµÄConnector²¿·ÖÌí¼ÓURIEncoding="GBK"£¬ÈçÏ£ºserver.xmlÌí¼ÓºóÄÚÈÝÈçÏ£º
Xml´úÂë 
<Connector  URIEncoding="GBK" port="8080"  
               maxThreads="150" m ......

jspºÍServlet¸÷×ÔÌصã

1. servletÊÇÔÚjavaÀïǶÌ×html,jspÊÇÔÚhtmlÀïÃæǶÌ×java,jspÐèÒªÏȱàÒë³Éservlet²ÅÄÜÖ´ÐÐ.
2. jsp×îÖÕ·­Òë³ÉservletÖ´ÐÐ.jspÈÝÒ×ÉÏÊֺͱàд¶øservletÐèÒª×Ô¼ºÊÖ¶¯±àÒë,ºÜÂé·³µÄ
3. servletÏÖÔÚ¸ü¶àÊdz䵱MVCÄ£ÐÍ¿ØÖÆÆ÷µÄ½ÇÉ«,ÓÉËü¸ù¾Ý¿Í»§µÄÇëÇó,À´¶¯Ì¬×éÖ¯·µ»ØÊý¾Ý»òÒ³ÃæµÄÖض¨Ïò,¶øJSPÖ»×öÏÔʾ(MVCÄ£ÐÍ,ÏÔʾ¿ØÖÆÄ£ÐÍ ÏÔ ......

JSP Standard Tag Libraries ʵ¼ùÀí½â

 ÔÚ±¾ÆªÎÄÕÂÖÐ,ÎÒÃǽ«»áÉîÈëÁ˽âÔÚ²»Í¬µÄTag LibraryÃèÊö·û(Tag Library Descriptors:TLDs)ÖÐʹÓø÷ÖÖ²»Í¬µÄtagµÄÇé¿ö.ÎÒÃǽ«»áÒÀ´ÎÑо¿ Ìõ¼þ¡¢Ñ­»·¡¢URL¡¢U18N¡¢XMLµÈtagµÄÓ÷¨¡£ÒÔ´ËÀ´Ìá¸ßÄã¶ÔJSTLµÄÈÏʶºÍÓ¦ÓÃÄÜÁ¦,ÔÚÔĶÁ±¾ÎÄÇ°£¬ÄãÓ¦¸Ã¶Ô JSP Tag LibÓÐËùÁ˽⣬²¢ÇåÎúÓйØJSTL£¨JSP Standard Tag Libraries£©µÄ»ù± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ