Thanks Frits. Had some problem with the <url-pattern> , which is why it wasn't working
However i do have a question.
These are my two servlets
CookieTest.java
And CheckCookie.java
And I am getting the out put :
helloNabila Maximum age is -1
Path is null
Domain is null
Version is 0
CookieTest forwards to a
jsp which then passes on to the CheckCookie.
I am just wondering why I am getting the max age as -1 and not as 30*60 , the way i set it initially.....