my dog learned polymorphism
The moose likes Servlets and the fly likes Problem with cookies and oas 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Problem with cookies and oas 4.0" Watch "Problem with cookies and oas 4.0" New topic
Author

Problem with cookies and oas 4.0

George Smith
Greenhorn

Joined: Aug 10, 2005
Posts: 3
Hi
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 !
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Moving to the servlets forum...


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 471
The behaivor is expectable. A browser haven't received any cookies from your servlet, so won't send anything back until gets something. When you clicked first time, your servlet sent a cookie to browser and no it will send it back.


Get power of your iPod with MediaChest | Minimal J2EE container is here | Light weight full J2EE stack | My blog | Co-author of "Windows programming in Turbo Pascal"
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem with cookies and oas 4.0
 
Similar Threads
Please help me with problem moving servlet from ApacheTomCat to Oracle AS
Session handling under OAS 9.0.3
problem with cookies and OAS 4.0
Problem with cookie
JSP - How to get the current URL?