I was trying to make a chat applet wriiten in "Java Servlet programming" by jason hunter. In ChatDispatch.java I am getting localhost:8080/servlet/ as my getServletPath whereas I had kept all my class related to it in localhost:8080/examples/servlets/ directory.
My all code work with localhost:8080/examples/servlet/ directory which is not present.I think it is virtual.
You should put your applet class files in the same directory as the HTML page that the applet lives in and use codebase to point to them. The URL http://localhost:8080/examples/servlet/ goes through special processing by the server. Don't use if for anything other than servlet classes. WBB