• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to include session info when forwarding from applet to jsp?  RSS feed

 
Chris Garrison
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy.
I'm using the following to forward control from an applet to a jsp:
getAppletContext().showDocument(new URL(newjsp));
Controll is NOT being returned to the applet.
Basically, oldjsp is submitting a job and forwarding control to the applet. The applet simply counts results. Once the job is finished, the applet forwards controll to the newjsp. I need the newjsp to know session info from old jsp.
I've worked with HttpURLConnection classes, but these seem to only help when conrol is being returned to the applet.
How can I send previously saved session (cookie) information to the new jsp.
In other words, how can I force the new jsp to utilize a previous session?
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would seriously consider rewriting the url that the applet is going to forward to include the session information.
Read up on it here:
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets11.html#66642
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!