Hello,
I'm trying to build a basic
servlet using Apache
Tomcat 5.0. I made a simple servlet:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class
Test extends HttpServlet
{
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException,IOException
{
PrintWriter out = response.getWriter();
out.println("Hello World!..");
} /* doGet */
} /* Test */
I compiled this class, and put the .class file into the ROOT/WEB-INF/classes. I tried to access this servlet through a browser using the following URL:
http://localhost:8080/servlet/Test I get the 404 error (cannot access resource). What am I doing wrong?
-Brendon