• Post Reply Bookmark Topic Watch Topic
  • New Topic

NullPointerException  RSS feed

 
Eugene Wright
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is struts 1.2 btw
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!