June 21st, 2001, 05:52 AM
Session tracking in JSP & Servlet
I have one jsp through which user logs in. After checking the authenticity of login from database, i want to put the userid in session variable in my class & should be there throughout my application. My application uses Servlet & Bean Manager & is running on Apache Server of Oracle 91 Application SErver. Now my major problem is once the session declared in JSP, when i want to get the session value in servlet, everytime it's returning me null. Is there any solution? If session variable created in Serv let, would it be retrievable throughout the application.
July 18th, 2001, 03:25 PM
July 30th, 2001, 07:42 PM
Why not you try setting your session attributes in your JSP? I tried that and it seems more stable as JSP directly interacts with the browser to create a session instance when it loads.