As per your suggestion, I change the scope to request.--> session. and it works fine.
But still facing a problem :
By clicking on ADD button, it only take 1-ROW of the Item Table. Not taking rest of the rows which I add dynamically.
For adding a Row dynamically, I used below script :
Thanks for suggesting such informative link. As I'm new to struts, can you pl. suggest such links/books, which helps to understand struts-hibernate in depth.
I'm facing Error IndexOutOfBoundsException... while submitting form...
few details regarding my code :
[1]
==>>[2]
==>>[3] in JSP, I added ItemDetails in Form of table
== Struts.xml
==>> in ActionClass
==>> Error Occurs
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.apache.commons.beanutils.PropertyUtilsBean.get IndexedProperty(PropertyUtilsBean.java:433)
at org.apache.commons.beanutils.PropertyUtilsBean.get IndexedProperty(PropertyUtilsBean.java:340)
at org.apache.commons.beanutils.PropertyUtilsBean.get NestedProperty(PropertyUtilsBean.java:684)
at org.apache.commons.beanutils.PropertyUtilsBean.get Property(PropertyUtilsBean.java:715)
at org.apache.commons.beanutils.BeanUtilsBean.setProp erty(BeanUtilsBean.java:884)
Pl. help in.
Let me know if you required any other information.