my dog learned polymorphism*
The moose likes Struts and the fly likes retaining values 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 » Frameworks » Struts
Bookmark "retaining values" Watch "retaining values" New topic
Author

retaining values

venkatesh warlu
Ranch Hand

Joined: Mar 11, 2008
Posts: 33
Hi all,

I have two tabs in my page with lots of drop down boxes in it. if i change the values within one tabs drop down and go to other tab and come back and see then the value which i have selected gets set to default value which on load i am setting it. How do i retain the values.

I am using struts.

Is there any way of doing it with hidden fields or some other trick , if so please help me with a sample code. thanks in advance ranchers.

bye

Surya Kant
Ranch Hand

Joined: Mar 29, 2005
Posts: 104
Well,It depends on how you want to go about it.
You can store them in session
You store the values as hidden variables
Or you can use form beans for this purpose
 
 
subject: retaining values
 
Similar Threads
Retaining Retaining Drop down value
Reg : Drop-down box
Java Script Drop-down option deletion but little bit different
Re-posting a JSP page
HTML