Do you mean something like a servlet (which is the standard way of executing Java code on a server)?
Ping & DNS - updated with new look and Ping home screen widget
Joined: May 05, 2009
Yes, kind of. I have a some java code in a main class that I need to run whenever a button is clicked.
I understand the button should launch a servlet, and then, should I put the code of the main class in another one the servlet can call?
Joined: Mar 22, 2005
You could make it a different class, or you could keep it in the servlet class. It depends a bit on what the class (or method) does, and how big it is.