I agree with this answer, but to be crude : "how to do read the session
cookie id and how to do send it back to the app server?"
 I know that at server-side you have such manipulation methods in
javax.servlet packages ; but how about at a client Java application side?
URL and UDLconnexion classes do no seem to have anything related to
cookies. Additionnaly, it seems that each application server has its own
name for the session id cookie (Servlet2.2 specs are supposed to normalize
that by calling the session id cookie 'jsessionid').
     Alex.




Randy Belknap <[EMAIL PROTECTED]> le 09/04/99 12:39:32 AM

Veuillez r�pondre � "A mailing list for discussion about Sun Microsystem's
      Java              Servlet API Technology."
      <[EMAIL PROTECTED]>

Pour :    [EMAIL PROTECTED]
cc :   (ccc : Alexandre VERMEERBERGEN/dassault-systemes)
Objet :   Re: Calling servlets from application



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




Reply via email to