It is very easy to track variables using session option.
once a session object is set,it is available to all servlets/jsp running in the same context.
The code for creating session is as foolws:
HttpSession session = request.getSession(true);
To create a session object:
session.setAttribute("obj","wrox");
Here "obj" is the session object and "wrox" is the value for the session object "obj".
u can get the session attribute value using in other jsp or servlets:
session.getAttribute("obj");
This returns the value for the session object "obj" i.e, "worx".
Note in JSP session is an implicit object,so by enabling session="true" in the page directive session object is available.
Try this!
V.S.Arun