Java Reflection and dynamic class loading
843834May 13 2003 — edited Jun 12 2003I 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.