Could not create servlet in web application project (google app engine) by using eclipse

eclipse, google-app-engine, java

Solution

This happens if none of your projects were created as "Dynamic Web Project". For example if you did :

`New --> Maven Project --> maven-archetype-webapp --> etc.`

To correct this either create a project via:

`New --> Dynamic Web Project`

or right-click your existing project and do:

`Properties --> Project Facets --> Convert to facet form...`

Tick`Dynamic Web Module`(verifying the version) then click`OK`

Problem

I am following Google App Engine Guestbook sample to create a new servlet in src folder. When the create servlet dialog open, I found I can't choose or type "Web Project" and can't browse to select "source folder" either. The eclipse is version 3.5, jdk I installed is 1.6.0_14-b08 I am working on Windows XP Pro with SP3. Before I tried to create new servlet, I can compile and start the server, after visiting http://localhost:8080, sample app works fine. Please advise. Thanks.

Original source