hello, a greeting to the people of the forum
how to display a sample helloworld
servlet?
I describe all the steps that I did, some of them are improvised because did not know exactly what to do
files structure of the webapp jhtp6
C:\Program Files (x86)\Apache Software Foundation\Tomcat 8.0\webapps\ROOT\
servlet source code
<WEBROOTDIR>\jhtp6\WEB-INF\classes\WelcomeServlet.java
compile servlet
>javac -classpath .;"C:\P
rogram Files (x86)\Apache Software Foundation\Tomcat 8.0\lib\servlet-api.jar" WelcomeServlet.java
compiling generate bytecode
<WEBROOTDIR>\jhtp6\WEB-INF\classes\WelcomeServlet.class
<WEBROOTDIR>\jhtp6\WEB-INF\web.xml
try to open browser and display the servlet
http://localhost:8080/jhtp6/welcome1
HTTP Status 404 - /jhtp6/welcome1
my attempt to display the servlet failed
yet webserver works with html pages
http://localhost:8080/jhtp6/web/hello.html
hello world!
system win7x64 , apache
tomcat 8