Gert Koning wrote:
>
> Hi
>
> I can not write more than one cookie from a servlet. No matter how many I
> add, only the LAST one get sent to the browser. The API docs state clearly
> that addCookie() can be called multiple times.
>
> My code looks like this:
>
> Cookie firstCookie = new Cookie("cookie1", "string1");
> firstCookie.setPath("/");
> res.addCookie(firstCookie);
> Cookie secondCookie = new Cookie("cookie2", "string2");
> secondCookie.setPath("/");
> res.addCookie(secondCookie);
>
> I am using Tomcat 3.0 on Linux. Any suggestions?
There was a bug in Tomcat 3.0 that causes this problem. Try with the
Tomcat 3.1 RC1 version
<http://jakarta.apache.org/builds/tomcat/release/v3.1_rc1/>
instead.
Also, please direct questions about specific implementations of JSP
containers to the organization that is responsible for the product.
For Tomcat there are a number of mailing lists, one for user questions.
ServletExec, JRun, WebSphere, WebLogic, OAS, etc. all have their own
user support forums and lists as well. This list generates a lot of
traffic, but if we can keep it focused on vendor independent questions
I believe we all win.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets