Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing a web app to test drive each method  RSS feed

 
Ramprakash Ramamoorthy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I got an assignment in my university. I need to write a single web page, that lists all the classes in the particular web app. Selecting a class, the page should list all the functions in it. Selecting a function, the user should be able to feed the parameters and displayed the returned value as a string.

Now this is the problem statement, hope it is unambiguous. Can some one tell me how should I go about it? Like where do I start, what are the things that should be considered and so on. Thanks in advance.

--
Ramprakash R
 
Tim Moores
Saloon Keeper
Posts: 3512
77
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's quite an ambitious project. In order to accomplish what you described you would have to dig into the inner workings of the Java ClassLoader architecture and the Reflection API. That seems a bit out of the ordinary for a university project.

There are also quite likely methods that take parameters that you can't easily create via a web page - what should happen with those?

By the way, Java doesn't have functions - it has methods.
 
Ramprakash Ramamoorthy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim. Will have to dig on it, will keep it posted here.

Oh yeah methods. I am still sticking to PHP, sorry for that :)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!