Issue
hope you having a good day. I am a java developer and currently learning servlets. I have downloaded a html template from colorlib and its hosted on my github. That template contains javascript, html, bootstrap etc. To handle registration and other work I want to use servlets. I tried to import project in Eclipse(Java EE edition). Steps I did are
- Went to File>Import>Project from GIT (not smart import, just simple one).
- Then I choose clone URI, entered the required details like URI, repository path, authentication details etc
- Now in new Window its asking me to choose a project, now I want guidance for futher steps. Which project type should I choose?
After choosing project type what name should I put inside project name as I am entering any name I am getting an error
Error connecting project project_name, no Git repositories found
Thanks in advance!!
P.S The server I am using is Tomcat 8.5 on localhost.
Solution
Import project using smart git import.
Step-1 Open your Java Project.
Step-2 Right Click on Your project -> Properties
Step-3 Click on “Project Facets” from left menu. Click on Convert to faceted form...
Properties - Click Project Facets
Step-4 Click Dynamic Web Project and Java.
Step-5 Click Apply and Ok.
Step-6 Clicks on the “further configuration available…” link. Choose location where you want to store your .html, .jsp files. Check generate web.xml
Your project should be converted to Dynamic Web Project now.
Answered By - Vinay Kharayat
Answer Checked By - David Marino (JavaFixing Volunteer)