• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto pre-selection of drop down boxes.

 
Thillai Sakthi
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All:
Need your help pls.
I have a drop down box which gets its values from db. This is okay for create screen, but for edit screen, I wish to pre-select the value in db in the dd box along with other values. How do I do this struts? The examples I am seeing are all hard-coded examples......

Can you please help?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the desired value in your ActionForm. This will return the desired value when the dropdown's get method is called on the ActionForm.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic