title: not able to resolve @WebServlet("/FileDao") error in servlet
body: <p>I have following  Servlet .</p>
  
  <pre><code>package com.ser1;
  
  import java.io.IOException;
  
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  /**
   * Servlet implementation class FileDao
   */
  @WebServlet("/FileDao")
  public class FileDao extends HttpServlet {
  private static final long serialVersionUID = 1L;
  
  /**
   * @see HttpServlet#HttpServlet()
   */
  public FileDao() {
      super();
      // 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
  }
  
  /**
   * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doPost(HttpServletRequest request, HttpServletResponse response)     throws ServletException, IOException {
      // TODO Auto-generated method stub
  } 
  
  }
  </code></pre>
  
  <p>I just created this new  Servlet in eclipse but I am understanding the line @WebServlet("/FileDao"). Can someone please tell what is the use of @WebServlet("/FileDao") and how to resolve the error ? 
  Here is the error shown by eclipse</p>
  
  <p>@WebServlet("/FileDao") this line is shown as error in eclipse
  WebServlet cannot be resolved to a type The attribute value is undefined for the annotation type WebServlet</p>