aspose file tools*
The moose likes Struts and the fly likes Please Help.Is it not possible in Struts to map indexed element ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Please Help.Is it not possible in Struts to map indexed element ?" Watch "Please Help.Is it not possible in Struts to map indexed element ?" New topic
Author

Please Help.Is it not possible in Struts to map indexed element ?

ambar patil
Ranch Hand

Joined: Nov 29, 2005
Posts: 226
Hi,
I am generating table dynamically and in each table I have reference to a list like these :
<input type="text" name="list[2].name" value="C"> -

<input type="text" name="list[3].name" value="C"> -

<input type="text" name="list[4].name" value="C"> -


here I am using index reference while assigning it to HTML.
But when I submit it, it gives error :
SEVERE: Servlet.service() for servlet ActionServlet threw exception
java.lang.NullPointerException
at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)

at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)


Please Help is this is not possible in Struts to map indexed element ?
 
jQuery in Action, 2nd edition
 
subject: Please Help.Is it not possible in Struts to map indexed element ?