Hi,
I'm using GWT with GAE. When the user enters any of the following urls, I want to just serve my app as usual to them:
http://www.mysite.com/
http://www.mysite.com/dog
http://www.mysite.com/cat
the first case works by default. I'm not sure how to get the /dog and /cat cases to work. I think I have to modify something with the url mappings to get that to work in web.xml. Essentially I'm trying to just get my app served with any url entered:
http://www.mysite.com/*
I'm trying this with a brand new project, so my web.xml looks like this:
<!-- Servlets -->
<servlet>
<servlet-name>greetServlet</servlet-name>
<servlet-class>com.me.test.server.GreetingServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>greetServlet</servlet-name>
<url-pattern>/test/greet</url-pattern>
</servlet-mapping>
and now I've appended the following below:
<servlet>
<servlet-name>servletGate</servlet-name>
<servlet-class>com.me.test.server.ServletGate</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>servletGate</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
when I enter a url like:
http://localhost:8888/
http://localhost:8888/dog
I get a null pointer exception thrown on the doGet() line here:
getServletConfig().getServletContext().getRequestDispatcher("test.html").forward(request,response);
what have I missed?
Thanks