I have been pouring over all the posts and how-tos I can find on indexed
properties and indexed values in general, and I am just not getting it.
Here is what I am trying to do:
I have a search page in a section of my main jsp. It returns results into a
SELECT, and the chosen item in the SELECT populates it's corresponding
property in the related Form.
In another section of the page I display an iterated list of items in a
collection. In each row that is rendered, I have a text input control, and
a button next to it. When the user clicks on the button, the idea is to
have the selected result from the search populate the text input control.
I call a method in the related Action class to retrieve the selected search
result, and then I need to put it into the correct detail item. THere is a
property in the detail item corresponding to the text input control. So I
would like to do somthing like
collection[i].setDestIndex(srchForm.getSelText); but I am stuck on how to
get the value of "i", the index of the row wherein the button was clicked.
I have tried setting up the iterate tag as:
<nested:iterate id="index" property="costs" >
.....
<nested:text property="destIndex" indexed="true" />
There is an "index" property in the Form, and in the item class that is a
member of the collection being iterated over.
I cannot seem to catch the index property anywhere, either as a property in
struts or as request.getParameter("index").
I am sure this is easy.... THanks for any ideas you can float my way, and
please use small words to match my minimal intellect <g>
T. McCobb
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]