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

Invoke bean methods by Reflection API?

 
Sam Jim
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello dudes..

Please tell me, how to invoke bean's setter & getter methods by reflection..
The main thing is, i need to set request's parameters to bean's setXxx() methods by reflection..(not a single setXxx() methods, but no of setXxx() methods). Help me & if possible send me the sample codes..

Urs
SaM..
[ November 28, 2007: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam Jim,
In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseRealWords

Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

Also, see:
EaseUp
to find out why adding 'urgent' to your posts or subject lines can actually slow down or halt responses to your question altogether.

If you click on the link in the top post in this forum, you can fix these things and increase your chances of getting a rapid and helpful response to your question.



Again, welcome to JavaRanch and good luck with your question.
-Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic