Right - GETs are not supported. Create a new Servlet that does not inherit
from GWTs servlet.

--Sri


On 7 April 2010 00:27, Hermod Opstvedt <hermod.opstv...@gmail.com> wrote:

> Hi
>
> GET is not supported - The GWT servlets only support POST.
>
> Hermod
>
> -----Opprinnelig melding-----
> Fra: google-web-toolkit@googlegroups.com
> [mailto:google-web-tool...@googlegroups.com] På vegne av markww
> Sendt: 6. april 2010 20:46
> Til: Google Web Toolkit
> Emne: Re: Supporting mysite.com/[username] urls with a gwt app?
>
> Hi Sri,
>
> Ok I'm using that:
>
>  <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>/*</url-pattern>
>  </servlet-mapping>
>
> but when I try this url:
>
>  http://localhost:8888/foo
>
> it doesn't work, my browser reports:
>
>  HTTP ERROR: 405
>  HTTP method GET is not supported by this URL
>  RequestURI=/foo
>
>  Powered by Jetty://
>
>
> should it be working?
>
> Thanks
>
>
> On Apr 6, 11:41 am, Sripathi Krishnan <sripathikrish...@gmail.com>
> wrote:
> > This is the right URL pattern to match all requests
> >
> > *<url-pattern>/*</url-pattern>*
> >
> > --Sri
> >
> > On 6 April 2010 23:41, markww <mar...@gmail.com> wrote:
> >
> >
> >
> > > After reading some on servlets in general, I guess what I'm looking
> > > for is a way to define a 'default' servlet. In other servers, you
> > > can do this:
> >
> > >  <servlet-mapping>
> > >    <servlet-name>greetServlet</servlet-name>
> > >    <url-pattern>/</url-pattern>
> > >  </servlet-mapping>
> >
> > > and any url which is not handled by another pattern would get served
> > > by the one above. This is exactly what I need, I just want to catch
> > > all urls to my domain like:
> >
> > >  http://www.mysite.com/a
> > >  http://www.mysite.com/b
> > >  http://www.mysite.com/c
> > >  etc
> >
> > > any pointers on how to specify that would be awesome. The above
> > > (using just a single forward slash for the url-pattern) does not work.
> >
> > > Thanks
> >
> > > On Apr 6, 6:53 am, markww <mar...@gmail.com> wrote:
> > > > Yeah all program state will be lost but that's ok for my application.
> >
> > > > Any idea on how to do that catch-all mapping though? I don't know
> > > > what the term for this is so searching is not going well, I am
> > > > guessing I have to do something with the url-pattern in the
> > > > <servlet-mapping>
> > > > section:
> >
> > > >   <servlet-mapping>
> > > >     <servlet-name>greetServlet</servlet-name>
> > > >     <url-pattern>/*</url-pattern>
> > > >   </servlet-mapping>
> >
> > > > On Apr 6, 6:42 am, kozura <koz...@gmail.com> wrote:
> >
> > > > > Yes you should be able to do a servlet mapping something like
> > > > > that to deal with the server side.  But seriously consider that
> > > > > client side code will be restarting every time they change the
> > > > > content being viewed.  All program state will be lost.
> >
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> <google-web-toolkit%2
> > > google-web-toolkit+Bunsubs cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to