• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sessions

 
Suneel Setlur
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can you track session using Hidden Fields?
 
Brett Knapik
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
Malu Sivasankar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
INPUT TYPE=HIDDEN NAME ="ORDERNO" VALUE = "1000"
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
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if the FORMs are not generated dynamically, the hidden fields can be:
<INPUT TYPE="HIDDEN" NAME="ORDER_NO" VALUE="<%= myObject.getOrderNumber() %>">
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 %>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic