Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAO class not populating Model class

 
Frank Serkland
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic