Follow the guide on this page:
http://blog.csdn.net/topwqp/article/details/8882965
Problem met:
- Description Resource Path location typethe superclass "Javax.servlet.http.HttpServlet" is not found on the Java Build Pat H 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 lik e Projectname/src/main/java (missing)
Click the "Add Folder" Check the "src" checkbox.
- ClassNotFound error for Lib folder is 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
Eclipse Maven to create Struts2 Project