0 Replies Latest reply on Apr 18, 2008 8:55 PM by 666705

    a bizarre behavior when include <%@ session="false" %>

    666705
      In weblogic8, suppose you have a.jsp and it has a line <%@ session="false" %>. Then the generated jsp_servlet file for this will not have session. It will have something like the following:
                javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, false, 8192, true)
                // NO HttpSession: page has session="false" directive.
                
                However, if you put the line <%@ session="false" %> in another file b.jsp, and you let a.jsp to include b.jsp, the generated jsp_servlet file for a.jsp will have session. You will have something like the following:
                javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
                javax.servlet.http.HttpSession session = request.getSession(true);
                
                What is wrong here? It should be the same as in the first case. This behavior actually cause some errors for some jsp programs. Weblogic9 does not have this problem. I found this problem when I upgrade weblogic8 to weblogic9.