Hi,
It will be hard to run a
jsp from command line you need to use a jsp engine (jasper for
Tomcat).
Better use a editor as eclipse and an
servlet container as Tomcat.
I understand that you know the difference between a servlet an a standalone
java app (main).
If not, your first goal is to understand what a servlet is and how code it.
What is your environment? Eclipse,
maven, Tomcat...?
How do you package your web app (war)?
There is a step by step 'hello world' example with Eclipse+Jeronimo
webapp example.
If you wish to use Tomcat instead Jeronimo just change the target runtime to Tomcat in the 3 step of the wizard.
Best regards,