开发者

Changing GWT URL in development mode

I am currently using GWT and when i am lauching the server, i am getting the following adddress

http://127.0.0.1:8888/Jhy.html?gwt.codesvr=127.0.0.1:9997

but I want to 开发者_如何学运维use an address like

http://www.moribiz.com because sometimes I will need to attach values to the url such as

www.moribiz.com?Username=asdasd

Is this possible??


Of course, you can. ?gwt.codesvr=127.0.0.1:9997 means you run your app. in hosted mode. delete it and just run like that in web mode http://127.0.0.1:8888/Jhy.html

then it is normal web app. manage your godaddy account redirect to www.moribiz.com and apache and other things to your needs. and if you send the url you can get its value like that

    www.moribiz.com?Username=asdasd
    String value = Window.Location.getParameter("Username"); // asdasd

happy coding


You need to compile and deploy on a local tomcat. Then you can hit it without the ?gwt.code... part

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜