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

alernate for session??

sudharshan tettu
Ranch Hand

Joined: Jul 17, 2006
Posts: 126

In my application i have a series of 4 pages,in which i have to retrieve a value user entered on first page , on the 3rd page,for which i am presently setting the field to session and retrivin it on the 3rd page.
But idont want to use session..is there any other way to use it?
azhar bharat
Ranch Hand

Joined: Jul 17, 2006
Posts: 87
you can use hidden fields.
i.e. <input type="hidden" ... > or <html:hidden ... >

You have to populate and read from the hidden fields just as you would with any other input fields.
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
When you submit your first page, you can set the value you want in the 3rd page to the form if you are using the same form for the 3rd page. If your form is in request scope, when you come from second page , make sure that its available to pass to 3rd page.For this when you submit your 2nd page, you need to check whether the value is available or not , if yes, set back to the form.
This is my idea.
I agree. Here's the link: http://aspose.com/file-tools
subject: alernate for session??
It's not a secret anymore!