| Author |
NullPointerException
|
Eugene Wright
Greenhorn
Joined: Mar 22, 2011
Posts: 10
|
|
My ultimate goal will be to take input from a form (search criteria), run a select from a data source, display in table form via jsp (displaytag). I chose Struts simply for something new, however I'm open to easier and more efficient java solutions.
My 1st form doesn't take input (yet), it simply goes to FetchAction which is my action class.
I'm receiving a NullPointerException at userForm.setCustomerList(actorData.loadData()); however my load data simply populates 1 entry in an arrayList with a CustomerContact. Just to test I print that portion out and I'm getting my expected results. My setCustomerList from my UserForm class is below:
My application is simply using one Action class, one ActionForm and a custom Bean and I've been following an example from: http://viralpatel.net/blogs/2009/06/struts-displaytag-tutorial-sort-pagination-data-displaytag-struts.html
Any help would be appreciated. Probably just a bit rusty on my java.
|
 |
Eugene Wright
Greenhorn
Joined: Mar 22, 2011
Posts: 10
|
|
|
This is struts 1.2 btw
|
 |
 |
|
|
subject: NullPointerException
|
|
|