This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Retrieving indexed property of form-bean 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 "Retrieving indexed property of form-bean " Watch "Retrieving indexed property of form-bean " New topic

Retrieving indexed property of form-bean

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
I have a form-bean which is subclass of ActionForm and in jsp I have defined an text field as indexed (as it is inside logic:iterate tag)

I don't know how to retrieve value in my action form as the simple

is not returning anything

my jsp code is as follows

If any one of you guys have faced this issue and can share the solution that will be really benevolent


SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
It's not enough just to specify indexed="true" in your <html:text> tag. You must also structure your ActionForm bean so that it can handle indexed properties.

The following URLs give examples and hints on how to use indexed properties:
[ August 30, 2006: Message edited by: Merrill Higginson ]

Consultant, Sima Solutions
It is sorta covered in the JavaRanch Style Guide.
subject: Retrieving indexed property of form-bean