In web.xml, you can specify a welcome file to map to the servlet:
<servlet> <servlet-name>WelcomeServlet</servlet-name> <servlet-class>foo.bar.WelcomeServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>WelcomeServlet</servlet-name> <url-pattern>*.foo</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>/welcome.foo</welcome-file> </welcome-file-list>
I would suggest that this also works in App Engine.
Of course, this will call the compiled servlet, and not the source code in the "src" folder (which is most likely not even deployed to the server).
source share