Servlet is not displaying from browser

hi, my problem is very simple,my servlet is not displaying.I saved my servelt code in tomcat/webapps/examples/classes directory and execute it through http://localhost:8080/servlet/examples/servletname. it gives differnt kind of errors,sometimes it shows in status line 'Connecting to localhost' and afterwards shows 'Done' and then stops.Sometimes it gives ' Error 207:Cannot access proxy cache server through url you entered'. I have tomcat 3.1,I thought may be there is some problem in server so I again downloaded tomcat 3.3 but the same thing is happening,no change. YEs one more thing,when I give http://127.0.0.1:8080/ it shows tomcat home page.anybody can tell what could be the problem?