Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-07 Thread markww
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

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread kozura
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

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread markww
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:

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread markww
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-namegreetServlet/servlet-name url-pattern//url-pattern /servlet-mapping and any url which is not handled by

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread Sripathi Krishnan
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:

SV: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread Hermod Opstvedt
/[username] urls with a gwt app? Hi Sri, Ok I'm using that: servlet servlet-namegreetServlet/servlet-name servlet-classcom.me.test.server.GreetingServiceImpl/servlet- class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/*/url-pattern /servlet-mapping

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread Sripathi Krishnan
-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-namegreetServlet/servlet-name

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread markww
...@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-namegreetServlet/servlet-name    servlet

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread Sripathi Krishnan
/[username] urls with a gwt app? Hi Sri, Ok I'm using that: servlet servlet-namegreetServlet/servlet-name servlet-classcom.me.test.server.GreetingServiceImpl/servlet- class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-06 Thread markww
mysite.com/[username] urls with a gwt app? Hi Sri, Ok I'm using that:  servlet    servlet-namegreetServlet/servlet-name    servlet-classcom.me.test.server.GreetingServiceImpl/servlet- class  /servlet  servlet-mapping    servlet-namegreetServlet/servlet-name

Supporting mysite.com/[username] urls with a gwt app?

2010-04-05 Thread markww
Hi, I'd like to have a simple url scheme similar to twitter, something like: // shows my app landing page. http://www.mysite.com // shows public info on a user. http://www.mysite.com/johndoe how could I do this with GWT? I think we can use this format: http://www.mysite.com#johndoe

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-05 Thread kozura
While I'm sure it probably could be redirected somehow on the server side with tweaking, you'd lose out on using GWT's history mechanism on the client side. The # mechanism keeps the browser on the same page, while allowing GWT to capture and dispatch history in a normal and linkable/bookmarkable

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-05 Thread markww
Yeah I just think that the average user has been trained to expect slashes, especially after twitter and the like, Thanks On Apr 5, 4:24 pm, kozura koz...@gmail.com wrote: While I'm sure it probably could be redirected somehow on the server side with tweaking, you'd lose out on using GWT's

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-05 Thread kozura
Eh I'm sure most users don't even notice or care about the internal urls of a site, and this is creating problems there aren't any - I'd hope you have more important things to worry about in devel. Could always do it with the #s for now, and once you're up and running if it's really an issue, go

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-05 Thread Qian Qiao
On Mon, Apr 5, 2010 at 22:17, markww mar...@gmail.com wrote: Yeah I just think that the average user has been trained to expect slashes, especially after twitter and the like, Thanks Can't you just for requests to /asdf to #asdf? Should simple enough to achieve. Thanks, Joe -- Two things

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-05 Thread Sripathi Krishnan
You can support /johndoe and /tom if you want, but be aware that going from /johndoe to /tom will be a page reload. On the other hand, going from /#johndoe to /#tom will just be a javascript call, though you are likely going to make a RPC /Ajax call to download new data. To achieve that, create a

Re: Supporting mysite.com/[username] urls with a gwt app?

2010-04-05 Thread Qian Qiao
On Tue, Apr 6, 2010 at 00:17, Qian Qiao qian.q...@gmail.com wrote: On Mon, Apr 5, 2010 at 22:17, markww mar...@gmail.com wrote: Yeah I just think that the average user has been trained to expect slashes, especially after twitter and the like, Thanks Can't you just for requests to /asdf to