This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
ActionForm with indexed properties
problem adding dynamically a new element to an ArrayList
Help with Indexing problem using logic:iterate and nested:iterate