wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Help.Is it not possible in Struts to map indexed element ?
 
Similar Threads
problem adding dynamically a new element to an ArrayList
IllegalArgumentException problem help
ActionForm with indexed properties
Help with Indexing problem using logic:iterate and nested:iterate
Recover ArrayForm in Action