This should work:
response.setHeader("Set-Cookie", "cookie string");
To give the response-object to a bean, write a method setResponce
(HttpServletResponse response)
- to the bean, and in jsp-file:
<%
bean.setResponse (response);
%>
>Hi
>
>How can I set a cookie with JSP? I would like to have a bean that sets the
>cookie but I don't know how to send the response object to it. Is it
>possible?
>
>Thank you,
>
>Daniel
Aapo Kyr�l� @ Satama Interactive @ team Wiima
-programmer-
tel. +358-9-680 51 587 Henry Fordin katu 6
00150 Helsinki
FINLAND
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".