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
  • 263,859
  • 56
  • 671
  • 702
Tum
  • 3,564
  • 5
  • 35
  • 62

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
  • 8,926
  • 3
  • 43
  • 68