Microsoft's Active Server Pages' (ASP) request and response objects
implement something they call "keyed" cookies. This is where there is what
amounts to a second level to the cookie name/value pair. Here's their
description:
>Using the Cookies Collection with the Response Object
>
><snip>
>To set the value of a cookie, use Response.Cookies. If the cookie does not
already exist,
>Response.Cookies creates a new one:
>
><% Response.Cookies("animal")="elephant" %>
>
>Similarly, to set the value of a cookie key:
>
><% Response.Cookies("animal")("elephant")="African" %>
>
>If an existing cookie has key values but Response.Cookies does not specify
a key name,
>then the existing key values are deleted. Similarly, if an existing cookie
does not have
>key values but Response.Cookies specifies key names and values, the
existing value of
>the cookie is deleted and new key-value pairs are created.
Is there a counterpart to this feature in JSP's request and response
objects? I'm aware that there is a Cookie type, servletresponse.addCookie()
method, etc. What I do not know is how to set and retrieve the sort of
two-part cookies ASP permits. Is there a way built in, or is some slick code
in order?
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html