Ladies and gents,

I am trying to write a servlet which will email the response of another
servlet. I've got the opening of the page, reading the response, then
emailing the contents done OK.

However, the page being read (by way of URLConnection uc =
url.openConnection()) relies heavily on session state. Session tracking is
done using cookies, which are (apparently) not shared between the servlet
running in the browser, and the servlet being requested from within that
servlet.

I have tried tacking ";jsessionid=" + <HttpSession>.getId() but this doesn't
work, I suspect since the session interceptor ignores that since it is only
expecting a cookie.

Does anyone have any idea on whether it is even possible to use the same
session when requesting servlets in this way, and if so, how? :-)

I am using Tomcat stand-alone on a Win2k server. IE6 is the browser I am
using to connect.

Any advice appreciated.

Thanks,

Dan

___________________________________________________________________________
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