hi,
concerning nested properties, i found so many questions, hints etc. in the archive but 
nothing that really helped all the way...i'm still confused (or even more now...)
i still don't understand how struts handles input from a form that holds an iteration 
of nested beans. 
is the following correct?
as soon as the user submits the form, the actionform-bean, holding the nested beans 
with the user's changes, gets transmitted. 
is it so, that before the action-class is called, the form-bean's reset() method is 
called, and all nested beans are set to null by default? 
so do i have to override the reset() method?
what do i iterate over in the reset() method to get the user's inputs? 
how do i limit the iteration?
does the validate() method gets called before the reset method?.

i've seen examples, where a dto-class is instanciated within the reset() method.
is this the way to do it?
do i have to access these dto-beans in the action class?

could somebody give me a little example of a reset()-method, just to show how the 
user's input can be gathered and then stored away?

and.. what are lazy lists? i wasn't able to find a definition....

sorry about it but 

regards from an utterly confused martin




---------- Urspruengliche Nachricht ------------------------------
Von: <[EMAIL PROTECTED]>
Datum:  Mon, 19 Jan 2004 10:52:10 +0100

>You ahve a fixed length or Empty list in the form.So when the auto population tries 
>to populate the nested bean for the list which is empty/fixed size,you get this 
>exception. 
>Try to use lazy list or search the archive for nested property usage...There are many 
>examples which will demonatrate how to use it.
>
>HTH.
>regards,
>Shirish
>
>-----Original Message-----
>From: Martin Sturzenegger [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 19, 2004 10:46 AM
>To: Struts Users Mailing List; [EMAIL PROTECTED]; Struts Users
>Mailing List
>Subject: Re: Including one JSP in another
>
>
>i try to receive user-input from a form using a list of nested beans.
>after hitting submit i get an ArrayIndexOutOfBoundsException
>can somebody give me a hint?
>many thanks
>martin
>
>
>
>
>stacktrace:
>
>java.lang.ArrayIndexOutOfBoundsException
>       java.lang.reflect.Array.get(Native Method)
>       
> org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:525)
>       
> org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:428)
>       
> org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:770)
>       org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
>       org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
>       org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
>       org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
>       
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
>       org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
>       org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>       org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
>
>
>>> > >
>>> > > Confidentiality Notice
>>> > >
>>> > > The information contained in this electronic message and any
>>attachments
>>> > > to this message are intended
>>> > > for the exclusive use of the addressee(s) and may contain confidential
>>> > > or privileged information. If
>>> > > you are not the intended recipient, please notify the sender at Wipro
>>or
>>> > > [EMAIL PROTECTED] immediately
>>> > > and destroy all copies of this message and any attachments.
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>>> > >
>>> > >
>>> > > Confidentiality Notice
>>> > >
>>> > > The information contained in this electronic message and any
>>attachments
>>> > to this message are intended
>>> > > for the exclusive use of the addressee(s) and may contain confidential
>>> or
>>> > privileged information. If
>>> > > you are not the intended recipient, please notify the sender at Wipro
>>or
>>> > [EMAIL PROTECTED] immediately
>>> > > and destroy all copies of this message and any attachments.
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > 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]
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>>
>>
> 
>                 
>
>---------------------------------------------------------------------
>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]

Reply via email to