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

JAVA³£ÓòÙ×÷Óï¾ä ÏîÄ¿ÖеÄ×ܽá¶þ


jspÊä³ö¸ñʽ»¯ºóµÄÈÕÆÚ
<fmt:formatDate value="${whiteNumber.crtdate }" pattern="yyyy-MM-dd HH:mm:ss"/>
ÈçÊÇmodelÀïµÄlistÔÚactionÖÐÈ¡²»µ½Öµ¡£¿ÉÄÜÔÚ¸ÃmodelÖеÄlistµÄsetterºÍgetter·½Ê½ÖУ¬Ê¹ÓõĿÉÄÜÊÇlazy¼ÓÔØ£¬¸ÄΪEAGER¼´¿É¡£
<s:iterator>±êÇ©ÀﻹÓÐ<s:iterator>±êÇ©£¬ÀïÃæµÄ±êÇ©ÔÚʹÓÃÖÐÈç¹û²»ÏÔʾÊý¾Ý£¬¿ÉÄÜÊÇÔÚÍⲿµÄ±êÇ©¶ÔÓ¦µÄbeanÀ¶ÔbeanÀïµÄlistµÄsetterºÍgetter·½·¨ÉèÖÃΪprivate£¬¸ÄΪpublic¼´¿É
¡£Í¬ÑùÔÚjspÖÐÓÃ${model.name}È¡²»¶ÔÖµ£¬Ò²¿ÉÄÜÔÚbeanÀïµÄnameµÄsetterºÍgetterÊôÐÔΪprivate ,¸ÄΪpublic¼´¿É¡£
title="hehe&#13;hehe"  &#13¿ÉÒÔÈÃaltÌáʾ»»ÐС£
iframe±êÇ©Òª¼Ó</iframe>¹Ø±Õ±êÇ©£¬²»È»ºóÃæµÄÔªËØÓпÉÄÜÎÞ·¨ÏÔʾ
IEÏÂjsµÄÊý×飬“£¬”ºó¶¼»áÓÐÒ»¿Õ¸ñ£¬¶øFFÏÂÔòûÓС£
²»ÈÃÁ´½ÓÕÛÐеÄcss£º
a {
     white-space:nowrap;
}
jsµÃµ½¸¸´°¿ÚÖ§³ÖIE FFË«ä¯ÀÀÆ÷
var iframe = parent.document.getElementById("msgrightframe");
var iDoc = iframe.contentDocument?iframe.contentDocument:iframe.contentWindow.document;// Firefox : IE
µÃµ½¸¸´°ÌåµÄiframe
div×Ô¶¯»»ÐУ¬ÇÒֻʹÓÃy¹ö¶¯Ìõ£¬¼æÈÝff£º
<div id="numDiv" style="display:block;word-wrap:break-word;word-break:break-all;width:495px;height:100px;overflow-y:auto;overflow-x:hidden;border:1px solid;border-color:#7f9db9;padding:2px;"></div>
ÅжÏsessionÊÇ·ñ¹ýÆÚ£¬²¢Ö´ÐÐijº¯Êý
    function isSessionOut(fun)//fun:sessionδ¹ýÆÚʱִÐеĺ¯ÊýÃû
    {
        var myConn = new XHConn();
        if (!myConn) alert("XMLHTTP²»ÄÜÓã¬ÇëÓøüеÄä¯ÀÀÆ÷.");
        var fnWhenDone = function (oXML) {
                            var ret = oXML.responseText;
                            i


Ïà¹ØÎĵµ£º

javaµ¥Ì¬Ä£Ê½½²½â


µ¥Ì¬¶¨Òå:
        SingletonģʽÖ÷Òª×÷ÓÃÊDZ£Ö¤ÔÚJavaÓ¦ÓóÌÐòÖУ¬Ò»¸öÀàClassÖ»ÓÐÒ»¸öʵÀý´æÔÚ¡£
        Singletonģʽ¾ÍΪÎÒÃÇÌṩÁËÕâÑùʵÏֵĿÉÄÜ¡£Ê¹ÓÃSingletonµÄºÃ´¦»¹ÔÚÓÚ¿ÉÒÔ½ÚÊ¡Äڴ棬ÒòΪËüÏÞÖÆÁËʵÀýµÄ¸öÊý£¬ÓÐÀûÓÚJavaÀ¬»ø»ØÊÕ£¨garbage c ......

java×Ô¶¨Òå±êÇ©

Èý²½£º
Ò»¡¢×Ô¶¨Òå±êǩʵÏÖÀࣺ myTags.java;
¶þ¡¢×Ô¶¨Òå±êÇ©¿âÎļþ£¨TLD£©: myTags.tld;
Èý¡¢Ò»¸öJSPÒ³Ã棺Ëæ±ãдÁË;
Ê×ÏÈmyTags.java
package com.tags;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
public class myTags extends ......

¡¾×ª¡¿ÓÅÐãJava³ÌÐòÔ±±ØÐëÁ˽âµÄGC¹¤×÷Ô­Àí

Ò»¸öÓÅÐãµÄJava³ÌÐòÔ±±ØÐëÁ˽âGCµÄ¹¤×÷Ô­Àí¡¢ÈçºÎÓÅ»¯GCµÄÐÔÄÜ¡¢ÈçºÎÓëGC½øÐÐÓÐÏ޵Ľ»»¥£¬ÒòΪÓÐһЩӦÓóÌÐò¶ÔÐÔÄÜÒªÇó½Ï¸ß£¬ÀýÈçǶÈëʽϵͳ¡¢ÊµÊ±ÏµÍ³µÈ£¬Ö»ÓÐÈ«ÃæÌáÉýÄÚ´æµÄ¹ÜÀíЧÂÊ £¬²ÅÄÜÌá¸ßÕû¸öÓ¦ÓóÌÐòµÄÐÔÄÜ¡£±¾ÆªÎÄÕÂÊ×Ïȼòµ¥½éÉÜGCµÄ¹¤×÷Ô­ÀíÖ®ºó£¬È»ºóÔÙ¶ÔGCµÄ¼¸¸ö¹Ø¼üÎÊÌâ½øÐÐÉîÈë̽ÌÖ£¬×îºóÌá³öһЩJava³ÌÐòÉ ......

java»ñµÃÏîĿ·¾¶

    /**
  * »ñÈ¡·þÎñÆ÷µÄwebµØÖ·
  * @return
  */
 private String getWebPath(){ 
  
   String _tempStr = Thread.currentThread().getContextClassLoader().getResource("").toString();
  
   _tempStr=_tempStr.substring ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ