This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes Redirecting to same page, keep same values in dropdown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Redirecting to same page, keep same values in dropdown" Watch "Redirecting to same page, keep same values in dropdown" New topic
Author

Redirecting to same page, keep same values in dropdown

Kartik Talasu
Ranch Hand

Joined: Aug 21, 2009
Posts: 98
Hello All,

Am using struts 1, am having a dropdown in a page. On change of that dropdown value am redirecting to same page.
when its redirecting to same page I want to keep the previous value which I had selected, but its not showing.
Below is the code which I had used.



Where brand and brandList are the attributes in my bean class and productsVO is the bean class which am keeping in request in action class.

And my struts-config.xml code is

 
jQuery in Action, 2nd edition
 
subject: Redirecting to same page, keep same values in dropdown
 
Similar Threads
Populate values from request in Struts 1
Struts: Getting a blank page instead of the form
The method setValue(String, Object) in the type TagSupport is not applicable for the arguments (Obje
Ajax-Struts
The method setValue(String, Object) in the type TagSupport is not applicable for the arguments (Obje