Hi,
I am trying to rretrieve a session value from a
jsp page and cannot seem to do so correctly.
What I am doinng is using a Model-View-Control process.
I Have a dispatcher
servlet which controls where the user goes on the web site. I pass in servlets to call and a jsp view page as values to the dispatcher servlet.
When the user clicks on the url. It first of all calls the dispatcherservlet. Then it calls a createVisitId servlet and then redirects to the required jsp page.
In the createVisitId servlet a visitId is set in session.
When I redirect to the jsp page I retrieve my visitorId value from my session. This seems to work fine for the first jsp page I go to. However for all other jsp pages I then go to, I cannot seem to be able to access my visitorId from the session anymore.
Does anyone know where my problem lies, and if so - how to solve it?