Deniz,
Doing a sendRedirect would not work since the applet is doing a
URLConnection
to get the data returned. It will just receive the redirect headers - it
is not a browser so will not react to the headers ...
Why don't you try putting the applet hosting page in the same context so
that
the user gets the same session id when the applet first loads - then do your
login process via the applet and then do a showDocument ...
That should work.
Cheers,
Jonathan
-----Original Message-----
From: Deniz Demir [mailto:[EMAIL PROTECTED]]
Sent: 08 October, 2000 7:56 AM
To: [EMAIL PROTECTED]
Subject: redirecting servlet page
Hi,
I have written a servlet and applet for login process. they communicate
with each other by URLConnection. I want to get a new page after
conversation. I have read so many archived mails of this mail list. I
orginaly wanted to use sendRedirect() after communication, since the
URLConnection is made in doPost method, I tried to sendRedirect in
doPost method. But it didn't work. And then I gave up and I tried to use
applet's showDocument() method. But in this case the following page (a
jsp) had a different session ID, so I could not get the objects which I
put into session in servlet.
I could not find any solution, what can I do?
Deniz...
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets