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

jspÒ³Ãæ¶àÎļþÉÏ´«£¨×ª£©

<html> 
<head id="Head1" runat="server"> 
    <title>ÎÞ±êÌâÒ³ </title> 
    <script type="text/javascript"> 
function MultiSelector(list_target, max) 

    // Where to write the list 
    this.list_target = list_target; 
    // How many elements? 
    this.count = 0; 
    // How many elements? 
    this.id = 0; 
    // Is there a maximum? 
    if (max){this.max = max;}else{this.max = -1;} 
    /** 
    * Add a new file input element 
    */ 
    this.addElement = function(element) 
    { 
        // Make sure it's a file input element 
        if (element.tagName == 'INPUT' && element.type == 'file') 
        { 
            // Element name -- what number am I? 
            element.name = 'file_' + this.id++; 
            // Add reference to this object 
            element.multi_selector = this; 
            // What to do when a file is selected 
            element.onchange = function() 
            { 
                var inputs = document.getElementsByTagName("input"); 
                var count = 0; 
                for(var i=0;i <inputs.length;i++) 
                { 
                    if (inputs[i].type =


Ïà¹ØÎĵµ£º

JSP ÖÐurlÖÐÎÄÂÒÂë½â¾ö·½°¸

pager.setActionName("../servlet/GetBookList?bookname="+booktemp.getBookName()
    +"&author="+booktemp.getAuthor()+"&publish="+booktemp.getPublish()+"&");
<a
  href="<c:out value="${pager.actionName}"/>pageNo=<c:out value="${pager.pageNo+1}"/& ......

jspÖ®session

session¾ÍÊÇÒ»¸öÈ«¾Ö±äÁ¿£¬ÊÇä¯ÀÀÆ÷Ïß³ÌÔÚ·þÎñÆ÷¶ËµÄ´úÀí¡£web·þÎñ³ÌÐòÖ»Òª´ò¿ª£¬session¾Í»á´æÔÚ£¬µ±ÄãµÚÒ»´Î·ÃÎÊʱ£¬session»á×Ô¶¯ÎªÄã·ÖÅäÒ»¸ösession ID£¬ËùÒÔsessionΪн¨Á¢µÄ£¬ËùÒÔsession.isNew()Ϊtrue¡£µ±ÄãË¢ÐÂÒ³ÃæÊ±£¬Õâ¸ösession IDÒ»Ö±´æÔÚ(session.getId()²»±ä)£¬²»»áÏûʧ£¬ËùÒÔsession.isNew()Ϊfalse¡£³ý· ......

´«ÖDz¥¿Í 2010 1 6 ¾Å¡¢JSP(1)_JSP¼¼Êõ


       JSP£¨Java Server Pages£©ÊÇÒ»ÖÖ¶¯Ì¬web×ÊÔ´µÄ¿ª·¢¼¼Êõ£¬servlet¼¼ÊõÄÜÍê³ÉµÄËùÓй¦ÄÜ£¬Ê¹ÓÃJSP¼¼ÊõͬÑùÒ²¿ÉÒÔÍê³É¡£µ«ÔÚ³¤ÆÚµÄÈí¼þʵ¼ùÖУ¬¸ù¾Ýservlet¼¼ÊõºÍJSP¼¼Êõ¸÷×ÔµÄÌØµã£¬ÈËÃÇÖð½¥°Ñservlet×÷ΪwebÓ¦ÓÃÖеĿØÖÆÆ÷×é¼þÀ´Ê¹Ó㬶ø°ÑJSP¼¼Êõ×÷ΪÊý¾ÝÏÔʾģ°åÀ´Ê¹Óá£
Ò»¡¢JSP ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ