posts - 120,  comments - 19,  trackbacks - 0
          request.getSession() will return the current session and if one does not exist, a new session will be cretaed.

          request.getSession(true) will return the current session if one exists, if one doesn't exits a new one will be created.

          So there is actually no difference between the two methods.
          ?
          HOWEVER, if you use request.getSession(false), it will return the current session if one exists and if one DOES NOT exist a new one will NOT be cretaed.

          posted on 2006-09-01 13:59 阿成 閱讀(692) 評論(0)  編輯  收藏 所屬分類: Struts
          主站蜘蛛池模板: 山阳县| 伊宁市| 精河县| 滁州市| 嘉义市| 慈利县| 怀来县| 临邑县| 泾源县| 北票市| 舟山市| 许昌市| 大悟县| 乐昌市| 冀州市| 安福县| 赣州市| 虹口区| 河池市| 山西省| 佛教| 安化县| 白城市| 宜川县| 清新县| 广灵县| 洛阳市| 石城县| 嘉峪关市| 临沂市| 巴林右旗| 县级市| 道孚县| 萍乡市| 尼木县| 高雄县| 福安市| 汶上县| 巴南区| 新宁县| 宜宾市|