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


Win a copy of Java 8 in Action this week in the Java 8 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
Recover ArrayForm in Action
IllegalArgumentException problem help
problem adding dynamically a new element to an ArrayList
ActionForm with indexed properties
Help with Indexing problem using logic:iterate and nested:iterate