C�dric Janssens wrote:

> How do you retrieve cookies with the JSP 1.0 <jsp:useBean> </jsp:useBean>,
> ..., <jsp:getProperty ... /> syntax ?
>

JSP pages are compiled into servlets, so you can use the normal servlet API
capabilities to access cookies:

<%
    Cookie cookies[] = request.getCookies();
%>

Then, you can walk through the array of cookies that were included with this
request, looking for the one you want.  See the servlet API
(http://java.sun.com/products/servlet) for more information.

Craig McClanahan

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

Reply via email to