Servlet configuration in module definitions (gwt.xml files) is for *simple* servlets. It's enough to get you started, but once your project reaches any siginificant level of complexity, you need to use the -noserver option for hosted mode and provide your own app server. You configure that app server as you normally would.
On Wed, Nov 26, 2008 at 3:50 AM, Michel <[EMAIL PROTECTED]> wrote: > > Hi, > > I have read the lengthy post about servlet descriptors for hosted mode > vs. deployed mode. > > http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/36f8c197279d159/ed4f5bbc972bc6b8?lnk=gst&q=web.xml#ed4f5bbc972bc6b8 > > According to this, I should put my <servlet> and <servlet-mapping> and > so on in tomcat/webapps/ROOT/WEB-INF/web.xml for hosted mode. Howewer, > I find that in practice I have to put them in myapplication.gwt.xml, > like this > > <servlet path="/MyServlet" class="ac.otago.flags.server.MyServlet"/> > > > If I do that, and not put my servlet in the aforementioned web.xml, it > works fine in hosted mode. So that is great, if unexpected, but now I > want to add a parameter for my servlet, along these lines: > > <servlet> > <servlet-name>MusicUploadService</servlet-name> > <servlet-class> > org.cafesip.gwtcomp.server.FileUploadServlet > </servlet-class> > > <init-param> > <param-name>action-class</param-name> > > <!-- Replace the action class name below with the fully > qualified name of the action class --> > <param-value>mypackage.MyActionClass</param-value> > </init-param> > </servlet> > > This is from the API for (org.cafesip.gwtcomp.server Class > FileUploadServlet) > > > How do I add the <init-param> to my gwt.xml file? Or should this be in > web.xml after all? If so, how? > > Thank you for your help, > > > > Michel > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---