aspose file tools
The moose likes Struts and the fly likes HTML:SELECT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTML:SELECT" Watch "HTML:SELECT" New topic
Author

HTML:SELECT

Java Rancher
Greenhorn

Joined: Mar 27, 2006
Posts: 1
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTML:SELECT