Hi
i am new to
Servlets and i have made a very simple servlet as follows :
import java.io.*;
import javax.servlet.*;
class serv extends GenericServlet
{
public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException
{
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
pw.println("<B> this is servlet speaking </B>");
pw.close();
}
}
After compiling the above code as given in a book i saved the
'class file' in 'c:\jsdk2.0\examples' and started the 'servletrunner' but when i try to access it through InternetExplorer, i get the message 'page not found'. On the DOS prompt also, where the 'servletrunner' is running, i get message that the servlet could not be found.If it is related to properties file, kindly explain.
plzzzzzzzzz help !!!