zhanghong920
Programmer
I use Eclipse as the IDE of java on my Windows machine. When I import javax.servlet.* and javax.servlet.http.* by using Source > add import > to direct to the directory of servlet.jar on my machine, Eclipse has no error tag on the two import lines (as below):
import javax.servlet.*;
import javax.servlet.http.*;
but it has error tags on "HttpServlet" in the line:
public class UnixRetrieval extends HttpServlet {
and the following lines including the methods in HttpServet.
It can't recognize class "HttpServlet". But I do include javax to the project as above. Do I need do something else? Or I need to use another method to import javax package? Thanks a lot,
Hong
import javax.servlet.*;
import javax.servlet.http.*;
but it has error tags on "HttpServlet" in the line:
public class UnixRetrieval extends HttpServlet {
and the following lines including the methods in HttpServet.
It can't recognize class "HttpServlet". But I do include javax to the project as above. Do I need do something else? Or I need to use another method to import javax package? Thanks a lot,
Hong