-2

Will this methodcall return the requestURL from the request? I have tried to read through the documentation, but haven't found the answer.

user16655
  • 1,771
  • 6
  • 32
  • 58
  • 1
    have a look at this one - http://stackoverflow.com/questions/6847192/httpservletrequest-get-query-string-parameters-no-form-data You may not be able to get the URL from httpservletrequest parameters, but you can get the queryString using request.getQueryString(), and I think its the same that you want. – Anand Vaidya Mar 08 '16 at 10:36

2 Answers2

1

no, but HttpServletRequest.getRequestURL() will...

Herr Derb
  • 4,570
  • 5
  • 27
  • 55
1

No. It return only parameters from the request (eg. from HTML form).

But you can use getRequestURL().

Ivar
  • 5,377
  • 12
  • 50
  • 56
WGawel
  • 72
  • 6