Re: cookie in portlet

2006-02-09 Thread mu baosen
> > Thank you.

Re: cookie in portlet

2006-02-09 Thread Jian Liao
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

Re: cookie in portlet

2006-02-09 Thread mu baosen
> > Thank you very much. If i call response.addCookie() in a jsp and include the jsp in a portlet. Can it work correctly?

Re: cookie in portlet

2006-02-09 Thread James Liao
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

Re: cookie in portlet

2006-02-09 Thread Philip Mark Donaghy
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

Re: cookie in portlet

2006-02-08 Thread mu baosen
> > Thanks for replying. I can not find the getResponse method in PortletResponse class.How to get it? Regards, Mubaosen

Re: cookie in portlet

2006-02-08 Thread Philip Mark Donaghy
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