This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41124
    
  45
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not Persisting values after coming back to a link
 
Similar Threads
Prepopulating a jsp
Problem in setting the date in a servlet
how to transfer values beteween jsp pages by hyperlink
how to transfer values beteween two pages using hyperlink
Prepopulating a jsp