Hi Kishore,
Why are you using ServletContext (think 1 per web context ) ?
You should be using the HttpSession object .HttpSession provides getAttribute,setAttribute and removeAttribute methods. You're only showing us the part which you think is the issue, it would help if you elaborate on what is "Absolute URL" which you access and in which
Servlet you have this code etc.,
And if this is a new project that you're working on, I strongly recommend you to use HTML5 semantics with a CSS framework like BootStrap.
Thanks
Srikkanth