BorderJ's Blog

          --- java FreeBsd Web3D open-sources

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

          2006年7月31日 #

          Writely Blog is proud to announce that Writely access is now free for everyone. Just sign up for an account.

          Writely is a word processing tool acquired by Google this year. Since it was acquired, users were required to have an invitation to try the product. You can read my negative review, but there are many people who like Writely.
          posted @ 2006-08-18 09:53 BorderJ 閱讀(479) | 評論 (0)編輯 收藏

          HttpRequest對象有兩種形式的getSession方法調用:
          一個是getSession(),
          另一個是getSession(boolean isNew)

          這樣的,前者會檢測當前時候有session存在,如果不存在則創建一個,如果存在就返回當前的。
          getSession()相當于getSession(true),

          參數為true時,若存在會話則返回該會話,否則新建一個會話。
          參數為false時,若存在會話則返回該會話,否則應該返回一個NULL

          這是文檔:

          getSession ?
          ? public ? HttpSession ? getSession(boolean ? create)Returns ? the ? current ? HttpSession ? associated ? with ? this ? request ? or, ? if ? if ? there ? is ? no ? current ? session ? and ? create ? is ? true, ? returns ? a ? new ? session. ? ?
          ? If ? create ? is ? false ? and ? the ? request ? has ? no ? valid ? HttpSession, ? this ? method ? returns ? null. ? ?
          ? ?
          ? To ? make ? sure ? the ? session ? is ? properly ? maintained, ? you ? must ? call ? this ? method ? before ? the ? response ? is ? committed. ? If ? the ? container ? is ? using ? cookies ? to ? maintain ? session ? integrity ? and ? is ? asked ? to ? create ? a ? new ? session ? when ? the ? response ? is ? committed, ? an ? IllegalStateException ? is ? thrown. ?
          ? ?
          ? Parameters: ?
          ? true ? - ? to ? create ? a ? new ? session ? for ? this ? request ? if ? necessary; ? false ? to ? return ? null ? if ? there's ? no ? current ? session ?
          ? Returns: ?
          ? the ? HttpSession ? associated ? with ? this ? request ? or ? null ? if ? create ? is ? false ? and ? the ? request ? has ? no ? valid ? session ?


          感謝
          zhouhu的提醒,現在已經修正。
          Edit By: BorderJ??? 2006.8.18


          posted @ 2006-07-31 19:46 BorderJ 閱讀(7877) | 評論 (3)編輯 收藏

          主站蜘蛛池模板: 十堰市| 合作市| 溧阳市| 娄烦县| 门头沟区| 乌兰察布市| 巧家县| 全南县| 垣曲县| 从化市| 江达县| 绥棱县| 赣榆县| 绥滨县| 丹东市| 昔阳县| 宜都市| 怀来县| 龙门县| 垫江县| 屯昌县| 萨嘎县| 九江县| 东辽县| 牟定县| 金堂县| 北票市| 富平县| 彭山县| 怀仁县| 温泉县| 思南县| 白山市| 洞口县| 永昌县| 鸡西市| 泰宁县| 获嘉县| 和田市| 军事| 海阳市|