You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Stearman <Pa...@AMT-Sybex.com> on 2001/10/19 12:54:39 UTC

JSP cookie problem

I am creating a site which almost entirely is made up of JSPs.

On the loin page i want to write some information (use id, database
connection id, etc) into a cookie.  I am forwarding the page onto the next
one using a javascript function which in turn calls window.location.href.
(this is due to another problem but anyway!) As a result the
response.addCookie command doesnt seem to do anything.  I cant do a
response.sendRedirect as it says the response is already committed.

Any ideas?
=====================================================================
DISCLAIMER

1. The information contained in this E-mail is confidential. 
   It is intended only for the stated addressee(s) and access 
   to it by any other person is unauthorised. 
   If you are not an addressee, you must not disclose, copy, 
   circulate or in any other way use or rely on the information 
   contained in this E-mail. Such unauthorised use may be unlawful. 
   If you have received this E-mail in error, please inform us 
   immediately and delete it and all copies from your system.

2. The views expressed in this E-mail are those of the author, 
    and do not represent the views of AMT-Sybex Group Ltd., its 
    associates or subsidiaries, unless otherwise expressly indicated.
    In the avoidance of doubt, the insertion of the name of AMT-Sybex 
    Group Ltd., its associate or subsidiary under the name of the sender 
    may constitute an express indication that the views stated in the Mail 
    are those of the named company.

=====================================================================
For more information on the AMT Sybex group visit: http://www.amt-sybex.com