I'm working through some examples in "Core Servlets and JavaServer
Pages".  I was looking at a couple of examples which use Cookies.  I
found the "SetCookies" and "ShowCookies" examples worked fine.

However, the next example, using "CustomizedSearchEngines" and
"SearchEnginesFrontEnd", didn't quite work.  In this example, a
"FrontEnd" servlet builds a page which fills in a form with some
cookie values, if they exist, or defaults otherwise.  Then a submit
button goes to another servlet which stores the form values into
cookies and then redirects to another URL.

What I'm finding is that the cookies that are set on the server side
never get to the browser (either Netscape or Mozilla).  If I had to
guess, it seems like finishing the request by redirecting to somewhere
else is causing the cookies not be sent back to the browser.

On the server side, I'm using Tomcat3.1 on NT, with JDK 1.3.

--
===============================================================================
David M. Karr     ; [EMAIL PROTECTED]  ; w:(425)487-8312 ; TCSI & Best Consulting
Software Engineer ; Unix/Java/C++/X ; BrainBench CJ12P (#12004)

___________________________________________________________________________
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