Hi guys: I have the following problem: Any help is appreciated!!

Problem: When I try to compile DateServlet.java in Visual J++ 1.1 it
returned the following error: (please have a look at the proram below)

--------------------Configuration: DateServlet - Java Virtual Machine
Debug--------------------
Compiling...
Microsoft (R) Visual J++ Compiler Version 1.01.7022
Copyright (C) Microsoft Corp 1996. All rights reserved.
C:\JavaWebServer1.1.3\servlets\DateServlet.java(26,8) : error J0051:
Undefined package 'servlet'
C:\JavaWebServer1.1.3\servlets\DateServlet.java(27,8) : error J0051:
Undefined package 'http'
Error executing jvc.exe.

DateServlet.class - 2 error(s), 0 warning(s)
--------------------------------------------------------------------
It is not identifying the package servlet adn http. My actual program is
below: Please help me if I need to set a path or modify the settings. Thanks

ACTUAL PROGRAM:
*********************************************************************
import java.io.*;
import java.util.Date;
import java.util.Hashtable;

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

/**
* Date Servlet
*
* This is a simple servlet to demonstrate server-side include
* It returns a string representation of the current time.
* @author Raffiudeen Illahideen
* @version 1.12, 11/13/99
*/
public class DateServlet extends HttpServlet {
    public void service(HttpServletRequest req, HttpServletResponse res)
        throws ServletException, IOException
    {
        Date today = new Date();
        res.setContentType("text/plain");

        ServletOutputStream out = res.getOutputStream();
        out.println(today.toString());
    }

    public String getServletInfo() {
        return "Returns a string representation of the current time";
    }

}


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
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