This is sample with jRun,I can compile the file.Pls see erroe information under the 
programm.

import java.io.*;

import javax.servlet.*;
import javax.servlet.http.*;

/**
 * Hello World. This servlet simply says hi.
 *
 * This is useful for testing our servlet admin tool, since
 * this servlet isn't started up by default when Jeeves starts up.
 * Load it by going to http://<server>/admin/servlet.html
 * and giving it the name "hello" and the class "HelloWorldServlet".
 * Then, invoke by using the URL http://<server>/servlet/hello
 */

public
class HelloWorldServlet extends HttpServlet {

    public void doGet (HttpServletRequest req, HttpServletResponse res)
 throws ServletException, IOException
    {
 res.setContentType("text/html");

 ServletOutputStream out = res.getOutputStream();
 out.println("<html>");
 out.println("<head><title>Hello World</title></head>");
 out.println("<body>");
 out.println("<h1>Hello World</h1>");
 out.println("</body></html>");
    }

    public String getServletInfo() {
 return "Create a page that says <i>Hello World</i> and send it back";
    }
}
I use visiual J++ and JDK 1.1 to compile.
error J0044: Cannot find definition for class 'Serializable'

___________________________________________________________________________
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

Reply via email to