I need this for my GWT test files -- those extending GWTTestCase. GWT test case requires you to define a .gwt.xml file where you define servlets. As far as I can tell, GWTTestCase can't read web.xml files.
So, how do I define init parameters for my servlet that can then be processed by GwtTestCase? - Dave On Feb 14, 3:04 pm, skippy <[email protected]> wrote: > Dave: > > You don't use the Module.gwt.xml file to define servlets. > The HTTP Servlet spec and pure java doesn't know about that module.gwt > xml. > > Simply use you normal Web.xml to add servlets for the GWT RPC service > calls. > The standare onload stuff work just a before. > > remember, GWT is compiling you Java Script files to run the UI. > > HTH! > > On Feb 14, 1:42 pm, laredotornado <[email protected]> wrote: > > > > > > > > > Hi, > > > I'm using GWT 2.4. How do I define servlet init parameters in my > > module (.gwt.xml) file when defining a servlet? I'm writing one for > > testing, but apparently the XML I copied online > > > <servlet> > > <servlet-name>SaveServlet</servlet-name> > > <servlet-class>com.myco.clearing.web.SaveXmlServlet</servlet-class> > > <init-param> > > <param-name>cacheServiceLocatorClass</param-name> > > > > <param-value>com.myco.clearing.product.test.MockCacheServiceLocator</ > > param-value> > > </init-param> > > </servlet> > > <servlet-mapping> > > <servlet-name>SaveServlet</servlet-name> > > <url-pattern>/save</url-pattern> > > </servlet-mapping> > > > isn't valid because I'm getting a lot of errors like "Cannot find > > 'path' attribute" and what not. Any guidance is appreciated, - Dave -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
