from the doc-
If by chance you are attempting to auto-populate using various datatypes 
instead of String
copyProperties is used for populating using varying DataTypes populate method 
is used only for populating with all String DataType
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/BeanUtilsBean.html#populate(java.lang.Object,%20java.util.Map)

Also
You may desire to throttle the populate by interrogating properties.size() 
beforehand
and populate only for the number of items <= return value of size()

Anyone else?
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Raghuveer" <[EMAIL PROTECTED]>
To: <commons-user@jakarta.apache.org>
Cc: <user@struts.apache.org>
Sent: Saturday, July 08, 2006 2:41 AM
Subject: Struts + Commons 500 error


> 
> 
> When session expires in my JSP i am getting following error.
> 
> I am using Struts Nested tags and validator framework.
> I am always using the collection in my actionform with Present,Empty tags
> always in my JSP.
> 
> 
> <nested:present name="testActionForm" scope="session">
> <nested:notEmpty  name="testActionForm"  property="arlCollectionBeanData" >
> 
> Experts,please share your comments..!!
> 
> 
> 
> 06/07/08 11:55:24 test: Servlet error
> java.lang.IndexOutOfBoundsException: Index: 4, Size: 0
> at java.util.ArrayList.RangeCheck(Unknown Source)
> at java.util.ArrayList.get(Unknown Source)
> at
> org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUt
> ilsBean.java:433)
> at
> org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUt
> ilsBean.java:340)
> at
> org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUti
> lsBean.java:684)
> at
> org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean
> .java:715)
> at
> org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:88
> 4)
> at
> org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
> ava:804)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at com.evermind[Oracle Application Server Containers for J2EE 10g
> (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispa
> tcher.java:765)
> at com.evermind[Oracle Application Server Containers for J2EE 10g
> (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletReq
> uestDispatcher.java:317)
> at com.evermind[Oracle Application Server Containers for J2EE 10g
> (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandle
> r.java:790)
> at com.evermind[Oracle Application Server Containers for J2EE 10g
> (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
> at com.evermind[Oracle Application Server Containers for J2EE 10g
> (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
> at com.evermind[Oracle Application Server Containers for J2EE 10g
> (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableRe
> sourcePooledExecutor.java:186)
> at java.lang.Thread.run(Unknown Source)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to