Hi,

I don't think you can really, unless you use client side script, but you can
try and send one, then see if you can pick it up again using something like
this (in this case it writes to the Printwriter, but you could evaluate it
in your code somewhere and do some action on the basis of that):

...
Cookie[] cCookies = request.getCookies();
for (int n = 0; n < cCookies.length; n++)
{
        out.println("<p>" + cCookies[n].getName() + "<p>");
{
...

That way you can see whether your cookie is accepted by th eclient and kept
in memory... (use .getValue() to get it's actual value)

Cheers
J

-----Original Message-----
From: anderson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 04, 2000 4:16 PM
To: [EMAIL PROTECTED]
Subject: Cookies


Hi,

How can I get if the browser is able to receive cookies ?
If the cookies options in the browser is disable, the session beans
works ?

thanks
[]s
anderson

===========================================================================
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

===========================================================================
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

Reply via email to