Follow the guide in this page:

http://blog.csdn.net/topwqp/article/details/8882965

 

problem met :

 

  • Description Resource Path Location TypeThe superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path index.jsp /Sample_Struts/src/main/webapp line 1 JSP Problem

 

Solution: right click the project->Properties->Targeted Runtimes-> Select the TOMCAT and click the Ok Button

  • Missing src/main/java source folder:

 Solution: Right click the project->Properties->Java Build Path-> Source Tab  click the red error mssing entry like  Projectname/src/main/java (missing)

Click the "Add Folder'  Check the "src" checkbox .

 

 

Eclipse Maven to create Struts2 Project

 

 

 

 

  • ClassNotFound error for lib folder not contain the libraries.

Solution: right click the project ->properties->Deployment Assembly-> Add the maven folder for project (Click Add button ->Java Build Path Entries->Next->Maven Dependencies

 

相关文章:

  • 2021-11-14
  • 2021-12-05
  • 2022-01-03
  • 2021-11-15
  • 2022-12-23
  • 2021-06-13
  • 2021-08-12
  • 2022-02-13
猜你喜欢
  • 2021-09-02
  • 2021-08-04
  • 2022-12-23
  • 2021-05-15
  • 2021-11-02
  • 2021-08-07
  • 2021-07-09
相关资源
相似解决方案