my dog learned polymorphism*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: How to retrieve property and labelProperty info from action class
 
Similar Threads
html:options usage
help regarding html select
twovalues in a labelProperties field of the options tag
Newbie in struts (and in english)
Struts help