I got an error while creating a servlet in eclipse like
Multiple markers at this line
- ServletException cannot be resolved to a type
- HttpServletResponse cannot be resolved to a type
- HttpServletRequest cannot be resolved to a type
Two possible issues could be
To include Servlet jar in your class path in eclipse, Download the latest Servlet Jar and configure using buildpath option. look at this Link for more info.
If you have included the jar make sure that your import is declared.
import javax.servlet.http.HttpServletResponse