RE: set-cookie

2010-05-26 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: set-cookie > > > Thread.currentThread().dumpStack(); > > Or the more traditional: > > new Throwable("Stack Dump").printStackTrace(); And if we look inside java.lang.Thr

Re: set-cookie

2010-05-26 Thread Kris Schneider
On Wed, May 26, 2010 at 2:04 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chuck, > > On 5/24/2010 3:55 PM, Caldarale, Charles R wrote: >>> From: banto [mailto:banto...@gmail.com] >>> Subject: Re: set-coo

Re: set-cookie

2010-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/24/2010 3:55 PM, Caldarale, Charles R wrote: >> From: banto [mailto:banto...@gmail.com] >> Subject: Re: set-cookie >> >> i´m using something like >> System.out.println(Thread.currentThread().getStackTra

RE: set-cookie

2010-05-24 Thread banto
great guys for a great forum!!! n828cl wrote: > >> From: banto [mailto:banto...@gmail.com] >> Subject: Re: set-cookie >> >> i´m using something like >> System.out.println(Thread.currentThread().getStackTrace()); > > What you got was a display of

RE: set-cookie

2010-05-24 Thread Caldarale, Charles R
> From: banto [mailto:banto...@gmail.com] > Subject: Re: set-cookie > > i´m using something like > System.out.println(Thread.currentThread().getStackTrace()); What you got was a display of the array object - not very interesting. Either iterate through the array, displaying each

Re: set-cookie

2010-05-24 Thread banto
chris, useful info. however when i print the current thread stack trace with a HttpSessionListener i see few info; something like this Ljava.lang.STackTraceElement;@4313455 i´m using something like System.out.println(Thread.currentThread().getStackTrace()); in the sessionCreated(). any advice

Re: set-cookie

2010-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Banto, On 5/22/2010 12:01 PM, banto wrote: > > Hi Chuck, > > i have found out who is generating that in my code: > > dispatcher.forward(request, response); > > the response contains also the set cookie header...it is automatically done > by tomcat

RE: set-cookie

2010-05-22 Thread banto
Hi Chuck, i have found out who is generating that in my code: dispatcher.forward(request, response); the response contains also the set cookie header...it is automatically done by tomcat... n828cl wrote: > >> From: banto [mailto:banto...@gmail.com] >> Subject: RE: set-cooki

RE: set-cookie

2010-05-22 Thread Caldarale, Charles R
> From: banto [mailto:banto...@gmail.com] > Subject: RE: set-cookie > > ..then where the > > set-cookie come from if not from the line > getServletContext().setAttribute("products", products);? That's part of the init() method, called when the servlet init

RE: set-cookie

2010-05-22 Thread Martin Gainty
; From: banto...@gmail.com > To: users@tomcat.apache.org > Subject: RE: set-cookie > > > ..then where the > > set-cookie come from if not from the line > getServletContext().setAttribute("products", products);? > > actually i added this line to another servlet

RE: set-cookie

2010-05-22 Thread banto
..then where the set-cookie come from if not from the line getServletContext().setAttribute("products", products);? actually i added this line to another servlet but no set-cookie header is sent? thanks n828cl wrote: > >> From: André Warnier [mailto:a...@ice-sa.com]

RE: set-cookie

2010-05-21 Thread Caldarale, Charles R
> From: banto [mailto:banto...@gmail.com] > Subject: set-cookie > > Now the code is something like: > > public class FrontController extends HttpServlet { > > public void init() throws ServletException { > > HashMap products = new HashMap(); > Product p = new P

RE: set-cookie

2010-05-21 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: set-cookie > > // Store products in the ServletContext > getServletContext().setAttribute("products", products); > > Presumably, if you store something in the context, it is because you >

Re: set-cookie

2010-05-21 Thread André Warnier
banto wrote: Hi gurus, my problem here is that i'm trying to understnad a servlet code that makes tomcat to send the Set-Cookie: JSESSIONID=8BCB60D6F6B9394B4ABD2FDD007BDB39; Path=/store header. Now the code is something like: public class FrontController extends HttpServlet { public