Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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 ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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
Recover ArrayForm in Action
Help with Indexing problem using logic:iterate and nested:iterate
ActionForm with indexed properties