Answer Posted / sandeep m
Cookie is a key value pair stored by server at client side
for session tracking any other related use.
Cookie class is available in javax.servlet.http package.
cookies can be retrieved from
javax.servlet.http.HttpServletRequest object using
getCookies() method.
getCookies() returns Cookie[] array object. Any number of
Cookies can be stored on response object.
cookie can be added to
javax.servlet.http.HttpServletResponse object. using
resp.addCookie(new Cookie("key","value"));
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a hello world program using servlets.
Describe in brief RequestDespatcher?
What are the different mode that servlets can be used?
How can the referrer and the target urls be used in servlet?
Tell us something about servletconfig interface.
How a servlet is unloaded?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
List the Different types of servlet?
Why the concept of single thread model interface is used?
Difference between httpservlet and generic servlets?
What is the major difference between context parameter and context attribute?
What is servlet container?
If a servlet is not properly initialized, what exception may be thrown?
What is servlet lazy loading?