my dog learned polymorphism
The moose likes Servlets and the fly likes Invoke bean methods by Reflection API? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Invoke bean methods by Reflection API?" Watch "Invoke bean methods by Reflection API?" New topic

Invoke bean methods by Reflection API?

Sam Jim

Joined: Nov 26, 2007
Posts: 2
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..

[ November 28, 2007: Message edited by: Bear Bibeault ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

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:

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:
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.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Invoke bean methods by Reflection API?
It's not a secret anymore!