I am trying to run a simple program to test cookies .
I have a form.html in which takes user input ( via CookieTest.java) and passes it on to a jsp (cookieresult.jsp ) which inturn passes on to another servlet (CheckCookie.java) .
The problem is it's not giving me the value of the parameters which were inserted in the form .html , even though it works fine till the jsp. I just get null values in the last servlet.
I am not very clear with concept to know if I am doing it right , or how it should be done to get the output.
Here's the code.
And finally CheckCookie.java
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Ensure if CheckCookie and CookieTest are under same domain... Suppose if you are trying locally and using "localhost", both servlet URL should be under domain "localhost" since Cookie is based on
SCJP 6 [SCJP - Old is Gold]
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads