You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Sturzenegger <ma...@pangeadev.com> on 2004/01/19 10:59:26 UTC

receiving data from a form using nested beans

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)
>
>
ps: sorry, forgot to change title line, didn't want to upset the running thread.

>
>
>>> > >
>>> > > 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
>>> > > Mailadmin@wipro.com immediately
>>> > > and destroy all copies of this message and any attachments.
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>> > >
>>> > >
>>> > > 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
>>> > Mailadmin@wipro.com immediately
>>> > > and destroy all copies of this message and any attachments.
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>> > >
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
> 
>                 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
 
                 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: receiving data from a form using nested beans

Posted by Mark Lowe <ma...@talk21.com>.
is your form scoped to session?


On 19 Jan 2004, at 09:59, Martin Sturzenegger wrote:

>
> 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(Property 
>> Utils.java:525)
>> 	 
>> org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(Property 
>> Utils.java:428)
>> 	 
>> org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyU 
>> tils.java:770)
>> 	 
>> org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.j 
>> ava: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(RequestProce 
>> ssor.java:821)
>> 	 
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.jav 
>> a: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)
>>
>>
> ps: sorry, forgot to change title line, didn't want to upset the  
> running thread.
>
>>
>>
>>>>>>
>>>>>> 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
>>>>>> Mailadmin@wipro.com immediately
>>>>>> and destroy all copies of this message and any attachments.
>>>>>>
>>>>>> ------------------------------------------------------------------ 
>>>>>> ---
>>>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail:  
>>>>>> struts-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>> 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
>>>>> Mailadmin@wipro.com immediately
>>>>>> and destroy all copies of this message and any attachments.
>>>>>>
>>>>>> ------------------------------------------------------------------ 
>>>>>> ---
>>>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail:  
>>>>>> struts-user-help@jakarta.apache.org
>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------- 
>>>>> --
>>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail:  
>>>>> struts-user-help@jakarta.apache.org
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org