0
votes

I have a gwt url like this

http://127.0.0.1:8888/BiddingSystem.html?gwt.codesvr=127.0.0.1:9997#ForumMessage=918

when I am doing this

Window.Location.getParameter("ForumMessage")

I am getting null??

By the way, I not getting the point why this ?gwt.codesvr=127.0.0.1:9997 in the url!!

2

2 Answers

5
votes

To get the value of the URL fragment (the part after the #) call Window.Location.getHash(). This will return all of "ForumMessage=918".

getParameter() returns query parameters, not the URL fragment.

See here for more information about the parts of a URL.

The ?gwt.codesvr= part is needed to run in Development Mode.

0
votes

Look at this topic GWT URL Parameters

Here is answer

url should be http://localhost:8080/?testing=abc#pg5 instead of http://localhost:8080/#pg5?testing=abc

and delete that part (?gwt.codesvr=127.0.0.1:9997 ) and run it in web mode. I think it will solve your problem