You'll have to parse the cookie from the response and include it in the
header of each request to the server.
(*Chris*)
----- Original Message -----
From: Syed H. Haque <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 03, 1999 8:34 AM
Subject: Calling servlets from application
> Hi,
>
> I am trying to simulate calling servlet from browser through a java
> application. I am using Java URL class to connect to the servlet url. I
> then call three more servlets using Java URL class one after another.
> The problem i am having is i loose the session. The servlets uses
> HTTPSession to maintain the session.
> But when i call the first servlet from netscape browser, which calls the
> other servlets through returned html page and javascript(onLoad
> function) the session is maintained. I was wondering if i can maintain the
> session in my java application. I have a limation also i have to use
> jsdk2.0. I am using weblogic webserver 4.0.3 to run the servlet.
>
> Any help would be greatly appreciated,
>
> Regards,
> Syed Haque
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html