aspose file tools*
The moose likes JSP and the fly likes not Persisting values after coming back to a link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "not Persisting values after coming back to a link" Watch "not Persisting values after coming back to a link" New topic
Author

not Persisting values after coming back to a link

Girjesh Trivedi
Greenhorn

Joined: Nov 16, 2005
Posts: 9
Hi all,

in a jsp page I am using one table consisting of links and text boxes.if I enter some values in text boxes and then clicks on any link.
on this new page there is a link for previous page .but when I am clicking on that link the values i had previously entered in text boxex are not persist.Please tell me how to persist these values.

Regards
Girjesh Trivedi
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
When you render the first page a second time, does your code fill in those values? The second page needs to pass those values along to the first page, possibly in a Java bean. Then there needs to be some code in the first page that checks whether those values are there, and pre-fill the fields with them.


Ping & DNS - my free Android networking tools app
Ajith George
Ranch Hand

Joined: Dec 22, 2005
Posts: 109
You can better use Java bean as Ulf suggested or use Session to store the values.


SCJP 1.4, Brainbench
LinkedIn - Blog
 
 
subject: not Persisting values after coming back to a link