pageContext.getSession()

2004-09-14 Thread Pablo Carretero Sánchez
Hi all, I'm migrating an application from Weblogic 5.1 to Tomcat 5. can I use pageContext.getSession() in tomHi all, I'm migrating an application from Weblogic 5.1 to Tomcat 5. can I use pageContext.getSession() in tomcat 5??cat 5?? I'm using it and the Session returned is null- Best regards

Re: pageContext.getSession()

2004-09-14 Thread QM
On Tue, Sep 14, 2004 at 02:24:03PM +0200, Pablo Carretero S?nchez wrote: : I'm migrating an application from Weblogic 5.1 to Tomcat 5. can I use : pageContext.getSession() in tomcat 5??cat 5?? Isn't this call in the servlet spec? ;) Yes, it should work. What's the relevant code? I'd suspect

Re: pageContext.getSession()

2004-09-14 Thread Tim Funk
Sure you can use it. If there is no session - then null is returned. The equiv of: request.getSession(false). My guess is weblogic is creating a session when pageContext.getSession() is called. -Tim Pablo Carretero Sánchez wrote: Hi all, I'm migrating an application from Weblogic 5.1 to Tomcat

Re: pageContext.getSession()

2004-09-14 Thread Pablo Carretero Sánchez
: pageContext.getSession() in tomcat 5??cat 5?? Isn't this call in the servlet spec? ;) Yes, it should work. What's the relevant code? I'd suspect you're calling this from a JSP? Are you certain a session has even been setup when this JSP is called? -QM -- software -- http://www.brandxdev.net