Dear pros and newbs(like me)
I have this session attribute containing an Object.
I also have a session time out set to 30 minutes.
In the
servlet code I wrote the code below.
I also forward this object into a
JSP page and use it for another purpose. So if I refresh the page when the session is timeout, it will gives me an error too =(
The problem is, when the session is timeout and when I requested the servlet, it gives me an error stating that the object is null or empty.
Does any one knows how to mitigate this problem?
I heard that I must use a listener or a filter. But could anyone here please enlighten me how to solve this problem please.
I really appreciate your help. =)
Thank you Pros!
The full code: