Question in Cookie ?

How can I set cookie in my jsp Here is my code .But it is throwing error Cookie cok=new Cookie("UserName",s) Reponse.addCookie It is throwing in "Response.addCookie" cannot resolve the symbol Regards, Sangeetha

Hi the method is public void addCookie(Cookie cookie) i think there ur are using Response instead of response the implicit object But why ur are using cookie instead of using the implicit session object for maintaining the session Tushar