the reason:
To create a jsp file is as follows:
Error message "javax.servlet.http.HttpServlet" was not found on the Java) because there is no step 2
(Step 2 need to select when creating a servlet)
solution:
Click on the project name, right click, build path -> configure build path
Select add libary -> server runtime