Errors and solutions in files in The Myeclipse Development Environment: The import javax. servlet cannot be resolved ?, Javax. servlet
1. Development Tool: MyEclipse
2. Right-click the project> Build Path> Add External Archives (Tomcat> lib> servlet-api. jar) 1:
Figure 1
3. Open> servlet-api. jar
4. Complete
When importing import javaxservlethttpHttpServletRequest to a Java Web project developed using myeclipse, an error is prompted.
Because you have not imported the servlet-api.jar package
Import method: Right-click your project properties, and then
Select the imported external jar to go to the bin directory under your tomcat installation directory select servlet-api.jar
An error occurs when the project written in MyEclipse is introduced to eclipse. It is found that import javaxservlethttpHttpSession cannot be introduced.
Many jar files are integrated in MyEclipse.
Eclipse needs to manually set the jar required by your project
HttpSession
It may be the jar of serlet-api in tomcat
Check the bucket path of your project.