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

JSPʵÏÖÊ÷Ðνṹ

//ת×Ôhttp://blog.csdn.net/zqhf8/archive/2007/07/09/1683938.aspx 
1¡£Ô­Àí¼ò½é
 dtreeÊÇÒ»¸öÃâ·ÑµÄjavascript½Å±¾£¬Ö»Ð趨ÒåÓÐÏ޵ļ¸¸ö²ÎÊý£¬¾Í¿ÉÒÔ×ö³öƯÁÁµÄÊ÷ÐͲ˵¥¡£ÏÂÔØĿ¼£ºhttp://www.destroydrop.com/javascripts/tree/
 ÒÔÏÂÊÇdtreeµÄÓ÷¨Ê¾Àý£º
 1£©³õʼ»¯²Ëµ¥
 <script type="text/javascript">
  <!--
  var Tree = new Array;
  // nodeId | parentNodeId | nodeName | nodeUrl
  Tree[0]  = "1|0|Page 1|#";
  Tree[1]  = "2|1|Page 1.1|#";
  Tree[2]  = "3|1|Page 1.2|#";
  Tree[3]  = "4|3|Page 1.2.1|#";
  Tree[4]  = "5|1|Page 1.3|#";
  Tree[5]  = "6|2|Page 1.1.1|#";
  Tree[6]  = "7|6|Page 1.1.1.1|#";
  Tree[7]  = "8|6|Page 1.1.1.2|#";
  Tree[8]  = "9|1|Page 1.4|#";
  Tree[9]  = "10|9|Page 1.4.1|#";
  Tree[10] = "11|0|Page 2|#";
  //-->
 </script>
 2£©µ÷Óú¯Êý
 <div class="tree">
  <script type="text/javascript">
  <!--
   createTree(Tree,1,7);  // starts the tree at the top and open it at node nr. 7
  //-->
  </script>
 </div>
 ÏÔÈ»£¬Èç¹ûÓö¯Ì¬µÄ½Å±¾À´³õʼ»¯²Ëµ¥Êý×飨asp,jsp¾ù¿É£©£¬ÄǾͿÉÒԺܷ½±ãµÄʵÏÖ¶¯Ì¬µÄÊ÷ÐͲ˵¥ÁË¡£
2¡£jsp¶¯Ì¬ÊµÏÖ
   ·ÖÒÔϲ½ÖèʵÏÖ¶¯Ì¬µÄÊ÷ÐͲ˵¥£º
   1£©ÔÚÊý¾Ý¿â½¨tree_info±í£¬ÓÐnodeId£¬parentNodeId£¬nodeName£¬nodeUrlËĸö×ֶΣ¬À´´æ´¢½ÚµãÐÅÏ¢¡£
   2£©±àдjavaÀ࣬ÓÃÓÚ´ÓÊý¾Ý¿âÕÒ³ö½ÚµãÐÅÏ¢£¬²¢ÇÒÉú³Éjavascript½Å±¾¡£
   3£©±àдtagÀà¡£ÓÃÓÚ·â×°Âß¼­£¬¼ò»¯jspµÄ¿ª·¢¡£
   4£©½¨Ò»¸öweb³ÌÐò½øÐвâÊÔ¡£
3¡£Ïêϸ¹ý³Ì
   1£©ÔÚÊý¾Ý¿â½¨±í£¬½Å±¾ÈçÏ£º
   CREATE TABLE `test`.`tree_info` (
   `node_id` INTEGER UNSIGNED NOT NULL DEFAULT -1,
   `parent_id` INTEGER UNSIGNED NOT NULL DEFAULT -1,
   `node_name` VARCHAR(45) NOT NULL,
   `ref_url` VARCHAR(45) NOT NULL,
   PRIMARY


Ïà¹ØÎĵµ£º

½¨Á¢JSP開發環¾³

 1.  JRE °²裝 (¿É從 http://java.sun.com/ÏÂ載)
       Java SE Runtime Environment (JRE)   JRE 6 Update 17
 2.  JDK°²裝   (¿É從 http://java.sun.com/ÏÂ載)
      Java SE ......

JSP·ÖÒ³¼¼Êõ

ÔÚʹÓÃÊý¾Ý¿âµÄ¹ý³ÌÖУ¬²»¿É±ÜÃâµÄÐèҪʹÓõ½·ÖÒ³µÄ¹¦ÄÜ£¬¿ÉÊÇJDBCµÄ¹æ·¶¶Ô´ËȴûÓкܺõĽâ¾ö¡£¶ÔÓÚÕâ¸öÐèÇóºÜ¶àÅóÓѶ¼ÓÐ×Ô¼ºµÄ½â¾ö·½°¸£¬±ÈÈçʹÓÃVectorµÈ¼¯ºÏÀàÏȱ£´æÈ¡³öµÄÊý¾ÝÔÙ·ÖÒ³¡£µ«ÕâÖÖ·½·¨µÄ¿ÉÓÃÐԺܲÓëJDBC±¾ÉíµÄ½Ó¿ÚÍêÈ«²»Í¬£¬¶Ô²»Í¬ÀàÐ͵Ä×ֶεÄÖ§³ÖÒ²²»ºÃ¡£ÕâÀïÌṩÁËÒ»ÖÖÓëJDBC¼æÈÝÐԷdz£ºÃµÄ·½°¸¡£
JD ......

JSP Standard Tag Libraries ʵ¼ùÀí½â

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

jsp 301Öض¨ÏòµÄÒâÒ弰ʵÏÖ

 Ê×ÏÈ,˵һÏÂ301Öض¨ÏòµÄÒâÒåÓë×÷ÓÃ(ÍøÉÏÕÒµÄÏà¹Ø×ÊÁÏ)
ÆäʵÕâ¾ÍÉæ¼°µ½ÁËSEOµÄ֪ʶ¡£
ʲôÊÇ301תÏò£¿
´ÓËÑË÷ÒýÇæÓÅ»¯½Ç¶È³ö·¢£¬301Öض¨ÏòÊÇÍøÖ·Öض¨Ïò×îΪ¿ÉÐеÄÒ»ÖÖ°ì·¨¡£µ±ÍøÕ¾µÄÓòÃû·¢Éú±ä¸üºó£¬ËÑË÷ÒýÇæÖ»¶ÔÐÂÍøÖ·½øÐÐË÷Òý£¬Í¬Ê±ÓÖ»á°Ñ¾ÉµØÖ·ÏÂÔ­ÓеÄÍⲿÁ´½ÓÈçÊýתÒƵ½ÐµØÖ·Ï£¬´Ó¶ø²»»áÈÃÍøÕ¾µÄÅÅÃûÒòΪÍøÖ ......

Jsp JavaBean ServletʵÏÖMVC ϸ΢ÎÊÌâ×¢Òâ!

ÔÚJspÖе÷ÓÃSerlvetÖÐÒѾ­´æ´¢ÁËÐÅÏ¢µÄ JavaBean.
ServletÖÐÒѾ­°ÑÊý¾Ý¿âµÄÐÅÏ¢±£´æµ½JavaBeanÖÐ,ÔÙ°ÑJavaBean±£´æµ½SessionÖÐ.
Jsp¿ªÊ¼µ÷ÓÃ:
<jsp:useBean id="key" type="ClassName" scope="Session" />
<jsp:getProperty name="key" property="PropertyName" />
ÎÞ·¨¶Á³öÐÅÏ¢:
Ô­Òò: JavaBean ÖÐÊôÐÔµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ