File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Consider Paul's rocket mass heater.
 
subject: HTML:SELECT
 
Similar Threads
change font size in struts
for loop in select struts tag
Help me regarding select value in html:select...
how to set option to default ?
bean:message tag in option tag. is there a solution?