File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes need help for cookies problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "need help for cookies problem" Watch "need help for cookies problem" New topic

need help for cookies problem

chintan doshi

Joined: Apr 11, 2006
Posts: 3
in my application i cant read the cookie created from a servlet in a JSP page.
when i create the cookie using JSP & then read it using another JSP page it works fine.
can anyone please help me out with this problem.
thank you
Jagmohan Negi

Joined: Aug 24, 2005
Posts: 27
I Think it is a problem due becouse response is not committed
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Can you describe, in a little more detail, what you are doing?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rodrigo Alvarez
Ranch Hand

Joined: Apr 10, 2006
Posts: 75
could you post the code snipets showing how you set the cookie ?

It is a mistake to think you can solve any major problems just with potatoes.<br />--Douglas Adams
chintan doshi

Joined: Apr 11, 2006
Posts: 3
thank you friends for your reply. the task is to create a simple login application. it runs perfect on my local machine but when i run it on my university server it doesnt.

please help me out.
thank you,
I agree. Here's the link:
subject: need help for cookies problem