This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML:SELECT

 
Java Rancher
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to retrieve the value selected in the html:select option. How should I code for Getter and Setter methods in the form bean for the html:select option.


My code in the jsp is as follows
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's nothing special about a single-value select statement. You code a getter and setter for a property of type String, just as you would with any other ActionForm property. In this case, getSelectedCounty, and setSelectedCounty.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic