>
> Thank you.
Please read JSR-168 spec,Section 16.3.3.
On 2/10/06, mu baosen <[EMAIL PROTECTED]> wrote:
>
> >
> > Thank you very much.
>
>If i call response.addCookie() in a jsp and include the jsp in a
> portlet.
> Can it work correctly?
No.
--
thanks,
- Jian Liao
>
> Thank you very much.
If i call response.addCookie() in a jsp and include the jsp in a portlet.
Can it work correctly?
See PLT.16.3.3
The following methods of the HttpServletResponse must perform no operations:
setContentType, setContentLength, setLocale, addCookie, sendError,
5 sendRedirect, setDateHeader, addDateHeader, setHeader, addHeader,
setIntHeader, addIntHeader and setStatus.cxl The containsHeader method o
Try ((javax.servlet.http.HttpServletResponseWrapper)portletResponse).addCookie()
I'm not sure off the top of my head. Check the javadocs.
Phil
On 2/8/06, mu baosen <[EMAIL PROTECTED]> wrote:
> >
> > Thanks for replying.
>
>
>I can not find the getResponse method in PortletResponse class.How
>
> Thanks for replying.
I can not find the getResponse method in PortletResponse class.How to get
it?
Regards,
Mubaosen
Hi Mu,
On 2/8/06, mu baosen <[EMAIL PROTECTED]> wrote:
> Hello everyone
>
> Can a cookie be added in a portlet?
yes, the servlet sends cookies to the browser by using the
javax.servlet.http.HttpServletResponse.addCookie(javax.servlet.http.Cookie)
method.
The HttpServletResponse object can be obta