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 Spring and the fly likes Preloading form:select 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 » Spring
Bookmark "Preloading form:select" Watch "Preloading form:select" New topic

Preloading form:select

Jay Abrahm
Ranch Hand

Joined: May 28, 2008
Posts: 183
I have a page that first makes a DB hit for authentication and at the same time populates the jsp dropdown. I was able to make the db hit for both queries but unable to populate the dropdown. Can someone please help me figure what is wrong in the attached code.

Also, if someone has some sample code to populate form:select it would be helpful.
I agree. Here's the link:
subject: Preloading form:select
Similar Threads
Struts 2 s:div doubleselect problem ?
New value is inserted into db in @ManyToOne relation instead of update
Spring MVC binding with List of Objects
how to prepopulate a form using form:input tag?
Calling a controller method without reloading whole page