Can't add servlet in Eclipse Google App Engine

2019-07-22 13:39发布

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 :

enter image description here

The finish button stay disabled until a project is selected so I can't add my servlet.

2条回答
\"骚年 ilove
2楼-- · 2019-07-22 14:12

Right-click on the project, and click 'Properties'. Then open 'Project Facets', and tick the 'Dynamic Web Module' check-box.

enter image description here

After doing this, your project will be available in the Create Servlet wizard.

查看更多
3楼-- · 2019-07-22 14:23

In eclipse, When creating a new project that will contain servlets, you should create a Dynamic Web Project:

create a Dynamic Web Project with the wizard

If you've already created the project, you can right-click / Configure / Convert to Faceted Form / Dynamic Web Module.

查看更多
登录 后发表回答