This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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
 
Have you checked out Aspose?
 
subject: HTML:SELECT
 
It's not a secret anymore!