This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes Problem with cookie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem with cookie" Watch "Problem with cookie" New topic

Problem with cookie

George Smith

Joined: Aug 10, 2005
Posts: 3
I have a problem with my application.
i have a right side html menu, and the links invokes java servlets.
when i press the menu link (any link) at the first time, the cookie doesn't send to the servlet.
but if i press again this menu link, the cookie from now and on send to the servlet.
I'm using Oracle OAS 4.0.
what can be the problem ?
Thanks !
Leandro Melo
Ranch Hand

Joined: Mar 27, 2004
Posts: 401
Didn't understand your problem very well.
I'd say that in your case, you want the servlet to sendo the cookie to the browser, no?

Leandro Melo
SCJP 1.4, SCWCD 1.4
Daniel Rhoades
Ranch Hand

Joined: Jun 30, 2004
Posts: 186
What are you using the cookies for? Are you using the HttpSession API to manage your session data?

Drinking more tea is the key...
I agree. Here's the link:
subject: Problem with cookie
Similar Threads
Problem with session
Problem with cookies and oas 4.0
JSP - How to get the current URL?
problem with cookies and OAS 4.0
Accessing Cookie