my dog learned polymorphism*
The moose likes Struts and the fly likes To get indexed property value defined in html:text inside 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 "To get indexed property value defined in html:text inside action class" Watch "To get indexed property value defined in html:text inside action class" New topic
Author

To get indexed property value defined in html:text inside action class

kannan coding
Greenhorn

Joined: Nov 19, 2008
Posts: 12
I have a jsp which has html:text boxes which are indexed. When the user enters some value in the text box how to get those values in the action class of struts.
for example:
<logic:iterate id="XXX">
<html:text name="XXX" property="YYY" indexed="true"/>
</logic:iterate>

Now i need to access the value of this indexed html:text inside my action class

public class action extends Action{
???
}
and also the getter and setter method's for the property "YYY"

Kindly help me in this.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You will find the answer to this question by reading question 6 of our Struts FAQ. This has a working example of using indexed properties in a Struts 1 application.


Merrill
Consultant, Sima Solutions
 
 
subject: To get indexed property value defined in html:text inside action class
 
Similar Threads
array of arrays and a form
Nested Iterator Tags
Dynamic Textboxes.
ArrayList and tags
Retrieving indexed property of form-bean