Your application will have to read the headers being sent by the
webserver to get the session cookie id and then return that id to the
server on the next request in a header.
"Syed H. Haque" wrote:
>
> 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