File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrieve property and labelProperty info from action class

 
shah rah
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 162
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic