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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to retrieve property and labelProperty info from action class
 
Similar Threads
html:options usage
Newbie in struts (and in english)
twovalues in a labelProperties field of the options tag
help regarding html select
Struts help