Tuesday, October 26, 2010

Servlet mappings in GWT development mode

My GWT host page happens to be a JSP page called hostpage.jsp and I
have a bunch of different URLs all mapped to it through web.xml:

<servlet>
<servlet-name>hostPageServlet</servlet-name>
<jsp-file>hostPage.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>hostPageServlet</servlet-name>
<url-pattern>foo.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>hostPageServlet</servlet-name>
<url-pattern>bar.html</url-pattern>
</servlet-mapping>

When I'm not running in GWT development mode, everything works fine -
I can enter in http://localhost/foo.html or http://localhost/bar.html
and either way hostpage.jsp is invoked and the GWT module is loaded
and runs.

However, when I'm running in GWT development mode, if I enter in a URL
like:

http://mymachine:8888/foo.html?gwt.codesvr=mymachine:9997

I just get a 404 error. Why does this not work? How can I get it to
work?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate