This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes how to set arrayList property in form from view 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 "how to set arrayList property in form from view" Watch "how to set arrayList property in form from view" New topic
Author

how to set arrayList property in form from view

sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

hi all

i have a form which has a arrayList as a property and i created setters and getters for that.
in my view.jsp



error is NulPOinterException,arrayList is null always how to set a array list from view.

thanks,
Sudheer


Sudheer
SCWCD, SCJP 5
siddhu Math
Ranch Hand

Joined: Aug 10, 2006
Posts: 46
possibly check the scop of the respective actionform in your strutsconfig.xml action tag.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to set arrayList property in form from view
 
Similar Threads
Dynamically Allocate Array lists to options in a dropdown for struts JSP
Adding Dynamic Rows to Table using addrow button
Dynamically Allocate Array lists to options in a dropdown for struts JSP
retrieve drop down value
struts, html:options, ActionForm