"I know that .jsp has to become .java and .class to run. How does that happen?" This happens automatically
in the app server (mycgiserver.com) the first time a JSP is requested by a client. You don't have to do more than place the JSP on the correct DIR in the server.
Some servers compile a new JSP the moment they detect it to speed up the first delivery of the JSP that is requested.
For servlets in mycgiserver.com, they all have to belong to the package name that is your userid. If your userid is
peter, then all your servlets must be of that package.
Assume a servlet called
PetersEMailServlet in your base DIR. It has to have
package peter; as the first line of code.
If it's placed in your home DIR then it is accessed from the Internet as:
<A HREF="http://www.mycgiserver.com/servlet/<B rel="nofollow">peter</B>.PetersEMailServlet" TARGET=_blank>
http://www.mycgiserver.com/servlet/peter.PetersEMailServlet
You can have sub directories if you like with the corresponding pkg names:
A servlet /myservlets/AnotherServlet.class
would be accessed
http://www.mycgiserver.com/servlet/peter.myservlets.AnotherServlet and of course must belong to the package
peter.myservlets