Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Reflection and dynamic class loading

843834May 13 2003 — edited Jun 12 2003
I am trying to load my classes 'dynamically' using java reflection, which is a feature absolutely necessary for my webapp. I could not get this to work as of yet. Could someone please give me a piece of sample code that would do the following :

- return the value (String) of known method y from class x
- class x is only known at runtime (from the query-string in this case)
- method y is known

Thanks in advance.

cheers,
Tom

PS: Please do not give me any links to tutorials/articles that do not do the EXACT thing that I asked for. Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2003
Added on May 13 2003
32 comments
810 views