Two Laptop Bag*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "alernate for session??" Watch "alernate for session??" New topic
Author

alernate for session??

sudharshan tettu
Ranch Hand

Joined: Jul 17, 2006
Posts: 124
Hello

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
Hi
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??
 
Similar Threads
Head First Java - Q3 & Q5 on Page 170, 171
which case a session is killed ?
Maintaining user state in a web application
jsp: hidden field problem
how to get values from jsp pages