Can't add servlet in Eclipse Google App Engine project

霸气de小男生 提交于 2020-01-05 23:34:49

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/34977218/cant-add-servlet-in-eclipse-google-app-engine-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!