Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question on using java servlet in Eclipse

Status
Not open for further replies.

zhanghong920

Programmer
Nov 15, 2002
27
US
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top