View RSS Feed

Recent Blogs Posts

  1. Handling Cookies in JSP

    by , 11-20-2011 at 05:04 PM (My Java Tips)
    Cookies are text files that are downloaded onto a visitor's hard drive to store the visitor's actions in order to better
    customize their following visits. We may handle cookies in JSP and I will show you how to do that.


    JSP provides an implicit response object which is used to add cookies. To add a cookie to the response, addCookie method is used.
    We may store useful information in cookies for later use and this method is perfect for our needs.
    Java Code:
    response.addCookie(Cookie
    ...
    Categories
    Java EE , JSP