Both files are in the same directory (jsptests) below webapps . The structure of this directory is normal (has a WEB-INF , classes, lib , etc. folders). When I run this code inside Netbeans it works . When I run this code out of Netbeans it doesn't work . So is my question: Why ? Does Netbeans do any configuration on Tomcat ?
I got the answer now ... The problem is not with the code , but with the browser . In Firefox the code works well . On IE6 doesn't . On IE6 you need to disable an andvanced option of "show friendly HTTP error messages" .