I'm trying to add a servlet to a web application in Eclipse but I can't because I have to chose a project in the project selection dropdown list and there is no proposal in it :
The finish button stay disabled until a project is selected so I can't add my servlet.
2 answers
solution1
1 2016-01-24 15:15:29
In eclipse, When creating a new project that will contain servlets, you should create a Dynamic Web Project:
If you've already created the project, you can right-click / Configure / Convert to Faceted Form / Dynamic Web Module.
solution2
1 2016-01-31 17:48:09
Right-click on the project, and click 'Properties'.Then open 'Project Facets', and tick the 'Dynamic Web Module' check-box.
After doing this, your project will be available in the Create Servlet wizard.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.