File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes cookie, URL-rewriting and hidden fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "cookie, URL-rewriting and hidden fields" Watch "cookie, URL-rewriting and hidden fields" New topic

cookie, URL-rewriting and hidden fields

Saurabh Saha
Ranch Hand

Joined: Dec 08, 2004
Posts: 52
which is the best approach for session tracking, somebody told me that hidden fields are the best approach. Is it true, please confirm me.

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You are aware that the servlet container will do this for you, right?
Read Chapter 7 (SRV7) of the servlet spec.
You'll find the link in my signature.
[ April 25, 2005: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: cookie, URL-rewriting and hidden fields
Similar Threads
how to handle multiple request
DropDown Disabled.
encode and decode url query string values
Maintaining State between different calls to jsp
Prefer hidden field instead of session attribute