Re: HttpClient to Servlet

Michael Weller <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <000b01c2cb86$8642dbe0$2607b9d9@gutschimachine>
Hi!
> able to check this using the 'getSession(false)' and it result to not
> NULL which means that a new HttpSession was created. How can i implement
> my Java application so that when it request, my Servlet would not create
> a new HttpSession object.

a) Send same JSESSID with each request from the app to your servlet.
b) Use an API that can handle cookies (Jakarta's HttpClient comes to mind).

HTH!

-mw

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.