That would be perfect! I tried to make a brand new project using it
and pushed it to my app engine account:

  http://usermaps.appspot.com/

but you should see an error displayed when landing there. It looks
like it wants a projectname.html instead of projectname.jsp? Maybe app
engine has a problem handling the <servlet-name>indexpage</servlet-
name> instance? This is now the contents of my web.xml file, and I
have renamed projectname.html to projectname.jsp:

<!-- Servlets -->
<servlet>
  <servlet-name>greetServlet</servlet-name>
  <servlet-class>com.markww.usermaps.server.GreetingServiceImpl</
servlet-class>
</servlet>

<servlet-mapping>
  <servlet-name>greetServlet</servlet-name>
  <url-pattern>/usermaps/greet</url-pattern>
</servlet-mapping>

<!-- Default page to serve -->
<welcome-file-list>
  <welcome-file>UserMaps.jsp</welcome-file>
</welcome-file-list>


<servlet>
  <servlet-name>indexpage</servlet-name>
  <jsp-file>UserMaps.jsp</jsp-file>
</servlet>
<servlet-mapping>
  <servlet-name>indexpage</servlet-name>
  <url-pattern>/*</url-pattern>
</servlet-mapping>

Should this be working? It seems to be working ok when running locally
using Jetty,

Thanks




On Apr 6, 12:42 pm, Sripathi Krishnan <sripathikrish...@gmail.com>
wrote:
> Easiest thing to do -
>
>    1. Rename project.html to project.jsp
>    2. Put the following fragment in your web.xml
>    <servlet>
>        <servlet-name>indexpage</servlet-name>
>        <jsp-file>project.jsp</jsp-file>
>    </servlet>
>    <servlet-mapping>
>        <servlet-name>indexpage</servlet-name>
>        <url-pattern>/*<url-pattern>
>    </servlet-mapping>
>
> That way you don't have to write any java code.
>
> --Sri
>
> On 7 April 2010 00:33, markww <mar...@gmail.com> wrote:
>
>
>
> > Ok but if I make a new servlet that does not inherit from GWT's
> > servlet, how can I get it to serve my "project.html" and associated
> > compiled javascript files?
>
> > Thanks
>
> > On Apr 6, 11:59 am, Sripathi Krishnan <sripathikrish...@gmail.com>
> > wrote:
> > > 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%2Bunsubs
> > > > > >  cr...@googlegroups.com><google-web-toolkit%2Bunsubs
> > cr...@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%2Bunsubs
> > > >  cr...@googlegroups.com><google-web-toolkit%2Bunsubs
> > 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%2Bunsubs
> > > >  cr...@googlegroups.com><google-web-toolkit%2Bunsubs
> > 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%2Bunsubs 
> > 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to