GeeCON Prague 2014*
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to retrieve property and labelProperty info from action class