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 How to retrieve property and labelProperty info from action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to retrieve property and labelProperty info from action class" Watch "How to retrieve property and labelProperty info from action class" New topic
Author

How to retrieve property and labelProperty info from action class

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
<html:select property="mySelect">
<html ptions collection="selectData" property="value" labelProperty="label"/>
</html:select>
in my action class how do I retrieve the property and labelProperty values chosen by user.

my property is code and labelproperty is codedescription.
Mark Manns
Greenhorn

Joined: Jul 06, 2006
Posts: 14
your ActionForm should have a property called "mySelect" - and struts will place the value in there. or you can get "mySelect" off the request if you don't have an ActionForm.
Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi,
Any one have solution for this problem.

Getting labelproperty of<htmlption> in action class.

Thanks,
Bennet Xavier X
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to retrieve property and labelProperty info from action class
 
It's not a secret anymore!