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 Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML:SELECT
 
Similar Threads
Help me regarding select value in html:select...
how to set option to default ?
bean:message tag in option tag. is there a solution?
for loop in select struts tag
change font size in struts