aspose file tools*
The moose likes Struts and the fly likes DAO class not populating Model class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DAO class not populating Model class" Watch "DAO class not populating Model class" New topic
Author

DAO class not populating Model class

Frank Serkland
Ranch Hand

Joined: Jun 21, 2010
Posts: 104
Okay, different problem from me. My DAO class is not populating my Model class. I've stepped through this and verified that the data is reaching the DAO class, but it's not getting put in the Model. Instead an exception is being called, but when I call getMessage on the exception, all that gets printed out is null. Here is the class. Any advice?

Frank Serkland
Ranch Hand

Joined: Jun 21, 2010
Posts: 104
Frank Serkland wrote:Okay, different problem from me. My DAO class is not populating my Model class.


I just solved this problem. Putting the local variables inside the method did the trick. You can all just ignore this thread.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Also make sure that your posts end up in the proper forum--this question has nothing to do with Struts and probably belongs in one of the Java forums instead.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DAO class not populating Model class