Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: Sessions and clients

Chris Picton

2004-01-15

Replies:

On Wed, 2004-01-14 at 15:59, Ralph Einfeldt wrote:
> Just include the session id in the request.
> (As query parameter or as form field)

My problem is that I am submitting data via POST and the
Content-Type is text/xml, so I have no idea on how to pass extra
variables through.

I had thought that I should set a cookie containing the JSESSIONID in
the client request, but cannot find any examples of how to do this.

Can anybody help here?

Regards
Chris


>
> > -----Original Message-----
> > From: Chris Picton [mailto:chrisp@(protected)]
> > Sent: Wednesday, January 14, 2004 2:55 PM
> > To: tomcat-user@(protected)
> > Subject: Sessions and clients
> >
> > I have a servlet which uses a session to keep state.
> > The servlet also acts as a HTTP client, submitting xml data via a POST
> > to another servlet running on the same machine.
> >
> > Is there any way to have the second servlet have access to the same
> > session data that the first one has?
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
--
---------------------+--------------------------------------------------
    Chris Picton | PGP Key ID: 9D28A988 (wwwkeys.pgp.net)
Solutions Developer | PGP Key Fingerprint:
  Tangent Systems | 2B46 29EA D530 79EC D9EA 3ED0 229D 6DD6 9D28 A988
chrisp@(protected)
---------------------+--------------------------------------------------

Attachment: signature.asc
©2008 junlu.com - Jax Systems, LLC, U.S.A.