PDA

View Full Version : any way to add servlet filter in host mode?



bhomass
30 Mar 2009, 6:12 PM
since GWT in host mode maps servlets in the module file instead of web.xml, there does not seem to be a place to apply servlet filters. Is there any way to do that?

kentonho
31 Mar 2009, 4:38 AM
Hi bhomass,

The way we do this is explained in:

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_HostedModeNoServer

Here, we use the -noserver option, and leave the servlet filter set up as is in the web.xml. AFAIK, this isn't something you setup in the module.gwt.xml file because the module.gwt.xml is for the client side instead of the server side.

I hope this helps!




Kenton