session « Tag « JSP-Servlet Q&A





1. Problem with session handling using custom tags    coderanch.com

Hi all, Thanks for bothering to read this. I'm trying to tidy up some JSPs which had scriptlets all over them, by building the functionality into custom tags. The problem I'm seeing is that calls to request.getSession(false) return different HTTPSession objects, even though the HTTPServletRequest object is the same one (at least according to the ID tag in my debugger). Here's ...

2. accessing session inside custom tag    coderanch.com

3. Session problem in custom tag    coderanch.com

I am trying to get an array of cookies in a custom tag. Below is the code, followed by the exception report in the browser. I'm only including the method where the problem is occuring. The exception is being thrown in the line where I'm trying to get an HttpSession (the second line of the method.) Any help or advice out ...