If the session object null means, session is already expired or not yet initiated. After clicking the link that invokes my jsp page, it redirects me to the given url... page1------------ Attribute("something","somevalue"); now in your executing jsp page apply a check on the attribute As per my knowledge in a jsp page session object can never be null, because if you look at the _jsp Service method of servlet(jsp compiled servlet) the following line of code gets executed session = page Session(); means your session object is not null.
If you have received this communication in error please notify the Information Security Manager at [hidden email] as soon as possible and delete the message from all places in your computer where it is stored.Hi all I came across this page for invalidating the session mentions this way of invalidating the session: if (session instanceof org.apache.struts2.dispatcher. Cheers Richard As a responsible corporate citizen, London Scottish Bank plc asks you to consider the environment before printing this email. Session Map, in which case there could be potential for the session not to be invalidated when it's meant to be. I don't know enough about Struts 2 to answer this myself so would appreciate advice.We utilise virus scanning software but we cannot guarantee the security of electronic communications and you are advised to check any attachments for viruses.We do not accept liability for any loss resulting from any corruption or alteration of data or importation of any virus as a result of receiving this electronic communication.