1

Ok, i have these codes:

HttpServletRequest httpRequest = (HttpServletRequest) request;
String requestQueryString = httpRequest.getQueryString();
System.out.println(requestQueryString);

When open the url "http://127.0.0.1:8888/MyProject.html?gwt.codesvr=127.0.0.1:9997?_escaped_fragment_=home",

it printed out:

 gwt.codesvr=127.0.0.1:9997?_escaped_fragment_=home

That url is missing the http://127.0.0.1:8888/MyProject.html? part.

How to fix it?

Sotirios Delimanolis
  • 274,122
  • 60
  • 696
  • 724
Tum
  • 3,614
  • 5
  • 38
  • 63

1 Answers1

5

It would be

httpRequest.getRequestURL() + "?" + httpRequest.getQueryString()

prints

http://127.0.0.1:8888/MyProject.html?gwt.codesvr=127.0.0.1:9997?_escaped_fragment_=home
Alex Pakka
  • 9,466
  • 3
  • 45
  • 69