Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

accessing session inside custom tag  RSS feed

 
Ronwaldo Cruz
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Does anybody know how to access the HttpSession inside the doStartTag method of a custom tag?

I tried using pageContext.getSession() but I received a null value. Is there maybe a session activation in the JSP?
 
Ronwaldo Cruz
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the problem:

<%@ page language="java" session="false" %>

somewhere in the JSP
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!