Two Laptop Bag*
The moose likes Struts and the fly likes getting value of html texts created by iterating Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getting value of html texts created by iterating " Watch "getting value of html texts created by iterating " New topic
Author

getting value of html texts created by iterating

Anil K Sebastian
Greenhorn

Joined: Aug 11, 2008
Posts: 2
i am creating a html:text in logic:iterate. So there will be multiple text boxes with same property. i am not able to get the value of the text boxes populated in form bean.

How can we get the value of these textboxes in our action class?
How will we handle the property in form bean?
is there anything specific that we have to do in logic:iterate?

Please help me to get out of my issue..
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

In your form bean you have to define a property as an array type which you are setting multiple time in your jsp page using html:text ,


eg

If you are setting the 'name' attribute of action form more than once then definition for that goes as

ActionForm



JSP



and ActionClass

Hope this helps !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting value of html texts created by iterating