Hi,
I'd like to test the servlet.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.awt.*;
public class ServletTest extends HttpServlet
{
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<HEAD><TITLE> Servlet Test </TITLE></HEAD><BODY>
servlet started .... </BODY>");
out.close();
}
}
I downloaded the JSDK2.1 and 'installed' it. I started the localhost and can access it
with a browser.
In which directory do I have to copy the class file, that I can access it with:
http://localhost:8080/ServletTest
I always get the error message:
Error: 404
File Not Found
/ServletTest
I have a java book, it says I should start the servlet runner with the option '-d
pathname',
but I have only the startserver.bat.
I use WinNT 4.0 SP4, Netscape 4.5 and JDK1.2.
Thanks in advance
Juergen
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html