aspose file tools*
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 Java 8 in Action this week in the Java 8 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.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to set arrayList property in form from view
 
Similar Threads
retrieve drop down value
Dynamically Allocate Array lists to options in a dropdown for struts JSP
Dynamically Allocate Array lists to options in a dropdown for struts JSP
struts, html:options, ActionForm
Adding Dynamic Rows to Table using addrow button