> 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
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
-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
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
> 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
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
-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
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
> 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
; 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
..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]
> 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
> 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
>
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
14 matches
Mail list logo