Yes, you are right, the struts is not populating my beans contained within 
the collection i am passing.  The collection is in the session scope, and in 
JSP page I am using logic:iterate to display appropriate fields for changing 
their values.  I do have the getters and setters defined for the fields in 
my bean, but I didn't understand the part where you said about getter and 
setters for the beans in my collection.

I'll look up the indexed properties as you mentioned, but a small demo might 
be more helpful.

Regards,
Muhammad Momin Rashid.


"Richard Aukland" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Hi Muhammad,

I have had this problem you describe in the past. If I understand you
correctly, struts is not populating your beans. Do you have set and
getter methods for the beans in your collection? Try using indexed
properties (see the developers guide) and set a breakpoint on your
properties. You can then see if struts is populating your beans. Are
any of the form properties being updated? Make sure you have told the
action to use the form.

hope this helps

Richard





Hello again,

Thank you for your quick response, well perhaps it should update the
collection (actually the values of the beans contained within the
collection), but i doubt that it would be really as simple as that.

As per my observation the collection is not being updated, I've
already
confirmed this in my action class.

Regards,
Muhammad Momin Rashid.

"Richard Yee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Muhammad,
> The JSP is evaluated on the server and then sent to the browser.
When you
> change a value on the web page, you submit the form to an Action
class
> which then takes the form properties and should update your
collection and
> then persist it or put it in request or session scope. You can then
> forward to another JSP to re-display the updated collection.
>
> -Richard
>
> At 11:44 PM 8/24/2004, you wrote:
>>Hello,
>>
>>I have a collection of a perticular type of bean.  I am displaying
the
>>values of fields in each bean (bean values are of type strings,
boolean
>>etc.) inside a logic:iterate.  The problem is when I change any
value in
>>the
>>webpage, the bean in the collection does not get updated.  Can
anyone
>>guide
>>me how to accomplish this?
>>
>>Thanks for your time and effort
>>
>>Regards,
>>Muhammad Momin Rashid.
>>
>>
>>
>>
>>--------------------------------------------------------------------
-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Richard Aukland
49 Ravensmere, Beccles,
Suffolk, UK. NR34 9BE
Tel/Fax. +44(0)1502 470162
Cell.    +44(0)7906 094578
mailto:  [EMAIL PROTECTED]
http://www.aukinfo.com 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to