Hello, I have a JSP page with an applet in it. The applet talks to a Servlet. The session object that is present in my JSP page is not accessable in my servlet. How can I get the session object from my JSP page to the Servlet through an Applet? Thanks Uma
Joined: Feb 26, 2001
First of all, I think you need to give a little more information... like why cant you access the session in your servlet (are they on different servers or something?), and what kind of data are you trying to transfer... If your problem is that you dont know how to get access to the session in a servlet, then in the request processing method, try request.getSession() You probably dont need to transfer the entire session object, just a few attributes.
- Chris Stehno, SCPJ
Joined: Apr 28, 2004
you can use ServletContext to communicate with other servlet in the container.