Hello All,
I have a regular
struts application that I am refactoring. I am setting a few attributes into session in an action class.
objHttpRequest.getSession().setAttribute("reportsDate", strWebReportDate);
The control than flows to the business classes, hits the DB and returns back to load a
jsp. In the jsp when I try to read those variables, I get a null pointer exception.
String strReportDate = (String)session.getAttribute("reportsDate");
Does any body have any idea, what could be the possible reasons. I have checked that the values are not being reset nor is their any session.invalidate() call.