jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sessions" Watch "Sessions" New topic


Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
How can you track session using Hidden Fields?

Brett Knapik
Ranch Hand

Joined: Oct 15, 2000
Posts: 255
I would recommend you get a servlet book if you do not know this. This is in just every servlet book.
In Gates we trust. Yeah right....

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
Malu Sivasankar

Joined: Aug 02, 2000
Posts: 14
Hidden form fields are fields added to an HTML form that are not displayed in the client's browser. You can include hidden form fields with HTML like this:
These fields are sent back to the server when the form that contains them is submitted.
The disadvantage with this type of technique is that it works only for a sequence of dynamically generated forms.
Tony Alicea

Joined: Jan 30, 2000
Posts: 3226
Even if the FORMs are not generated dynamically, the hidden fields can be:
<INPUT TYPE="HIDDEN" NAME="ORDER_NO" VALUE="<%= myObject.getOrderNumber() %>">

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
that's easy :--
<input type = "hidden" name="go" value=" what everyou wanna put here">
recieve this in another jsp page by using :--
String get = request.getParameter("go");
<%= get %>

I agree. Here's the link: http://aspose.com/file-tools
subject: Sessions
It's not a secret anymore!