简体   繁体   中英

Can't add servlet in Eclipse Google App Engine project

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.

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

使用向导创建一个动态Web项目

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

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM