aspose file tools
The moose likes Servlets and the fly likes Applet to Servlet session problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Applet to Servlet session problem" Watch "Applet to Servlet session problem" New topic
Author

Applet to Servlet session problem

Kalluru Uma
Greenhorn

Joined: Apr 23, 2004
Posts: 2
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
Chris Stehno
Ranch Hand

Joined: Feb 26, 2001
Posts: 180
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
wally fer
Greenhorn

Joined: Apr 28, 2004
Posts: 5
you can use ServletContext to communicate with other servlet in the container.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet to Servlet session problem
 
Similar Threads
How to Send Session Object to Servlet through Applet
Communication session , servlet applet and back from applet servlet and session
passing objects from jsp to applet
showDocument doesn't work on IE
Session Object