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.
Hi All, I have a <html:select > which is populated with a <html ptionsCollection>. The collection "groups" from the code snippet below is a list of LabelValue beans. I can get at the selected value in my struts action by using the the getGroupId method I put in my struts form. My question is , how do I get at the label ? For example, if the user selects the item of my collection ["groupxyz", 5], a call to getGroupID will return 5. I want to know how to get the "groupxyz" string from my struts action. I tried to add a member to the struts form called "groupName" thinking that struts would put the label value there, but got an error.