jQuery in Action, 2nd edition
The moose likes Struts and the fly likes NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "NullPointerException" Watch "NullPointerException" New topic
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: NullPointerException
 
Similar Threads
Null Point Exception
Getting Problem in display tag with struts
Struts Flow of Execution with no form
DispatchAction problem
making of grid using display in struts 1.2