Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

html: options tag

 
kailas simha
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a list of values held in the label bean. When I create the drop down, how do I make one of the values a "default"?

For Ex, if "John", "Jill", "Jennifer" and "Kim" are the options in a drop down, how do I make (force) "Jill" to be default when the page comes up?

Thanks !
 
s penumudi
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you will be having a action form field for that drop down box. to that form field set "Jill" as value and it will get by default selected
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!