Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to read string value using java reflection

 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am setting string(model class string) value in my service class i want to get this in my model class to do compare operation. I am trying to get string value in model class but getting 'null'.
Can any one check my code what I am doign wrong.
service class code

in model class trying to get using reflection
 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found issue,now getting value..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic