Re: setting cookies in servlet and read inside the JSP

2004-04-20 Thread Veniamin Fichin
Emerson Cargnin wrote:

How do I read a cookie (inside a JSP) that I created inside a servlet. 
It looks that it has different path properties and so when I'm inside 
the JSP it can't read the cookie...
   There is javax.servlet.http.Cookie.setPath(String) which obviously 
works as it named. :-) After that call 
HttpServletResponse.addCookie(Cookie).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: setting cookies in servlet and read inside the JSP

2004-04-20 Thread Daniel Gibby
Did you ever get an answer to this?

You need to set the cookie path on your servlet cookie and your jsp up 
high enough in your path so that both can read it.
Example:
www.domain.com/ I think can be your path.
Cookies usually default to setting themselves in their current path, 
which may not be what you want, as you've found. You can set them up a 
level or two, or at the root of your domain.

Daniel

Emerson Cargnin wrote:

How do I read a cookie (inside a JSP) that I created inside a servlet. 
It looks that it has different path properties and so when I'm inside 
the JSP it can't read the cookie...




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


setting cookies in servlet and read inside the JSP

2004-04-19 Thread Emerson Cargnin
How do I read a cookie (inside a JSP) that I created inside a servlet. 
It looks that it has different path properties and so when I'm inside 
the JSP it can't read the cookie...

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]