title: How can I get the current URL in Google Web Toolkit via client side Java code?
body: <p>I'm trying to <a href="https://stackoverflow.com/questions/4514940/reading-request-parameters-in-google-app-engine-with-java">read the query arguments of the URL</a> in client side Java code, but I can't figure out how to find the current URL in Java.</p>
  
  <p>When I tried using <code>httpServletRequest</code> as recommended in <a href="https://stackoverflow.com/questions/1015442/how-to-get-the-current-server-url-of-appengine-app/1016732#1016732">this question</a>, it says that it cannot be resolved and it doesn't offer adding an import statement.</p>
  
  <p>I'm using Google Web Toolkit with Google App Engine.</p>