wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes how to read string value using java reflection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to read string value using java reflection" Watch "how to read string value using java reflection" New topic
Author

how to read string value using java reflection

Reshma Reddy
Ranch Hand

Joined: Dec 21, 2006
Posts: 197
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

Joined: Dec 21, 2006
Posts: 197
found issue,now getting value..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to read string value using java reflection
 
Similar Threads
How to create object to a specific class by using its name as string variable with out using new.
how to invoke a method of a reflected field
Not being successful with Reflection
Please Help in sorting JTable on multiple column.
Issue with sorting date column with null values in a dataTable