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
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
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:
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
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:
/[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
-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
...@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
/[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
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
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
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
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
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
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
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
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
17 matches
Mail list logo