Please guys I am new in servlet i created a project in eclipse and add new servlet in it after that i have a lot of errors in it and can not fix them
and all import lines have a red underline on it and can not fix it Is this a problem in configuration? or what
/**
* Servlet implementation class ServletTest
*/
@WebServlet(
description = "first servlet test",
urlPatterns = {
"/ServletTest",
"/ServletTestPath"
})
public class ServletTest extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* Default constructor.
*/
public ServletTest() {
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
response.getWriter().append("Served at: ").append(request.getContextPath());
}
}