<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    hk2000c技術專欄

    技術源于哲學,哲學來源于生活 關心生活,關注健康,關心他人

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      111 隨筆 :: 1 文章 :: 28 評論 :: 0 Trackbacks

    #

    spring 事務支持,需要事務支持。

    posted @ 2007-11-01 00:41 hk2000c 閱讀(261) | 評論 (0)編輯 收藏

    xxAction繼承BaseAction,BaseAction注入了一個CommonManager,BaseAction.commonSave()方法調用了commonManager。

    本來想xxAction調用父類的commonSave方法將會導致commonManager為null的錯誤,因為jvm去初始化BaseAction時并不會去注入CommonManger。
    其實解決這個問題只需要在子類xxAction bean配置文件中加上commonManager這個property,然后把父類BaseAction的commonManager 改為protected就 Ok了。這樣初始化子類的時候會注入commonManager,調用commonSave方法也就不會拋出npe了。

    配置文件中把xxAction 加上parent的配置也是可以的,這樣會把父類的所有property都注入

    posted @ 2007-10-31 16:32 hk2000c 閱讀(2022) | 評論 (0)編輯 收藏


    增加CMS static page 預讀功能

    posted @ 2007-10-31 00:22 hk2000c 閱讀(239) | 評論 (0)編輯 收藏

    用戶密碼使用動態密鑰SHA-512位加密

    posted @ 2007-10-30 14:17 hk2000c 閱讀(777) | 評論 (0)編輯 收藏

    系統會給出step by step 的配置表單

    配置比如 密碼密鑰 等 關鍵數據


    posted @ 2007-10-30 13:29 hk2000c 閱讀(232) | 評論 (0)編輯 收藏

    增加系統配置文件

    在 StartupListener 內 
     
    每次重啟讀取

    posted @ 2007-10-30 13:23 hk2000c 閱讀(216) | 評論 (0)編輯 收藏


    支持動態讀取系統配置的url列表,標記為 static , 權限可配置
     
    放在 StartupListener 內。
     
    做到每次系統重啟都自動更新,有校驗匹配的功能。

    posted @ 2007-10-30 13:22 hk2000c 閱讀(285) | 評論 (0)編輯 收藏

    增加用戶名即時校驗機制,可以即時查詢用戶名是否被占用。

    posted @ 2007-10-29 16:00 hk2000c 閱讀(228) | 評論 (0)編輯 收藏

    javax.servlet.http.Cookie

    JSESSIONID = 當前session 號碼

    org/apache/coyote/Request.java

    基本封裝類,包括基本request 信息

    其源代碼在此可以查看 http://www.docjar.com/html/api/org/apache/coyote/Request.java.html

     public Request() {
    72 
    73          parameters.setQuery(queryMB);
    74          parameters.setURLDecoder(urlDecoder);
    75          parameters.setHeaders(headers);
    76 
    77          methodMB.setString("GET");
    78          uriMB.setString("/");
    79          queryMB.setString("");
    80          protoMB.setString("HTTP/1.0");
    81 
    82      }
    83 

    開始初始化

    回收
     // -------------------- Recycling --------------------
    459
    460
    461     public void recycle() {
    462         bytesRead=0;
    463
    464         contentLength = -1;
    465         contentTypeMB = null;
    466         charEncoding = null;
    467         headers.recycle();
    468         serverNameMB.recycle();
    469         serverPort=-1;
    470         localPort = -1;
    471         remotePort = -1;
    472
    473         cookies.recycle();
    474         parameters.recycle();
    475
    476         unparsedURIMB.recycle();
    477         uriMB.recycle();
    478         decodedUriMB.recycle();
    479         queryMB.recycle();
    480         methodMB.recycle();
    481         protoMB.recycle();
    482         //remoteAddrMB.recycle();
    483         //remoteHostMB.recycle();
    484
    485         // XXX Do we need such defaults ?
    486         schemeMB.recycle();
    487         methodMB.setString("GET");
    488         uriMB.setString("/");
    489         queryMB.setString("");
    490         protoMB.setString("HTTP/1.0");
    491         //remoteAddrMB.setString("127.0.0.1");
    492         //remoteHostMB.setString("localhost");
    493
    494         instanceId.recycle();
    495         remoteUser.recycle();
    496         authType.recycle();
    497         attributes.clear();
    498     }

    偉大的method() 方法


     public MessageBytes method() {
    184         return methodMB;
    185     }
    186     

      getMethod() 方法就是從這里搞來的。

    還有 org.apache.tomcat.util.http.MimeHeader 存放了所有的Header 信息


    === MimeHeaders ===
    accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    referer = http://localhost/user/userRegister.html
    accept-language = zh-CN,en-US;q=0.5
    content-type = application/x-www-form-urlencoded
    ua-cpu = x86
    accept-encoding = gzip, deflate
    user-agent = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; MAXTHON 2.0)
    host = localhost
    content-length = 70
    connection = Keep-Alive
    cache-control = no-cache
    cookie = JSESSIONID=06820B9CA579BF64CC89C5E041864459







    posted @ 2007-10-27 19:52 hk2000c 閱讀(5768) | 評論 (0)編輯 收藏

    完成了靈活表單開發。

    加緊開發用戶權限,修正用戶列表,用戶編輯,用戶添加,數據庫支持。

    開發好以后就可以全面開發CMS系統了。




    posted @ 2007-10-27 17:29 hk2000c 閱讀(192) | 評論 (0)編輯 收藏

    僅列出標題
    共11頁: First 上一頁 2 3 4 5 6 7 8 9 10 下一頁 Last 
    主站蜘蛛池模板: 亚洲中文久久精品无码1| 亚洲大尺度无码专区尤物| 天天爽亚洲中文字幕| 91青青国产在线观看免费| 亚洲爆乳无码一区二区三区| 一级特黄录像免费播放肥| ZZIJZZIJ亚洲日本少妇JIZJIZ| 一级毛片免费在线| 男人的天堂亚洲一区二区三区 | 国产精品成人免费综合| 亚洲av午夜国产精品无码中文字| 免费无码又爽又刺激聊天APP| 亚洲校园春色另类激情| 无码高潮少妇毛多水多水免费| 亚洲人成色99999在线观看| 在线播放免费人成视频在线观看| 亚洲欧美日韩久久精品| 国产高清免费的视频| 一级中文字幕免费乱码专区| 亚洲AV无码一区二区三区在线观看| 日韩精品免费一线在线观看| 国产AⅤ无码专区亚洲AV| 久久这里只精品99re免费| 亚洲综合久久久久久中文字幕| 成人午夜免费福利视频| 亚洲精品V天堂中文字幕| 亚洲国产成人久久综合碰| 中文无码成人免费视频在线观看| 亚洲一区综合在线播放| 成人一a毛片免费视频| 黄色网址免费在线| 亚洲国产一区二区a毛片| 99久久这里只精品国产免费| 青青青亚洲精品国产| 亚洲国产第一站精品蜜芽| 国产一卡二卡3卡四卡免费| 特级毛片在线大全免费播放| 亚洲一卡2卡三卡4卡有限公司| 午夜毛片不卡高清免费| 中文字幕在线观看免费| 亚洲区精品久久一区二区三区|