I am setting the value of a session attribute to a string value in let's call JSP 1 and the next JSP that is displayed is retrieving the value and then the attribute value is null in the next JSP 2 which is displayed next.
setAttribute("var1", "acme widgets");
var1 is set to "acme widgets"
However var1 in the mean time set to null
null == getAttribute("var1")