posted 14 years ago
You seem to think it's possible to make a hyperlink which will connect to your server and call an arbitrary method in your Java code. It isn't.
When connecting to a servlet, the link will either call the doGet() method or the doPost() method of the servlet depending on how the link is set up.
So if you need certain methods to be called, the way to do that is to pass parameters to the servlet, which the servlet code will then inspect and do the appropriate thing, as Bosun Bello already suggested.