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
          主站蜘蛛池模板: 香港| 普兰店市| 县级市| 梨树县| 西安市| 永康市| 米易县| 合水县| 长丰县| 桃源县| 蓝山县| 沙洋县| 黄龙县| 拉萨市| 大方县| 丰都县| 株洲市| 繁昌县| 蛟河市| 阜新市| 故城县| 兴宁市| 建瓯市| 深水埗区| 郯城县| 若羌县| 汨罗市| 呼和浩特市| 台东市| 全南县| 北流市| 富平县| 融水| 东辽县| 芦溪县| 烟台市| 南康市| 沅江市| 枣庄市| 阜阳市| 杭州市|