This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Is it possible to invoking a method by getting its name in string... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is it possible to invoking a method by getting its name in string..." Watch "Is it possible to invoking a method by getting its name in string..." New topic
Author

Is it possible to invoking a method by getting its name in string...

Pankaj Mittal
Ranch Hand

Joined: Jul 09, 2008
Posts: 32
I want to invoke a method whose name I've got in string.....


2008 SCJP(5.0) 88%
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You can do this sort of thing via Reflection. Have a read though that link it should set you on your way.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Pankaj Mittal
Ranch Hand

Joined: Jul 09, 2008
Posts: 32
Thanks buddy !!
I found the solution...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to invoking a method by getting its name in string...
 
Similar Threads
Confusion with the below mentioned code
javax.jms.Message method
need help urgently
Not able to run sample servlet + jsp
Checking for null inputs