-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,901
  • 6
  • 36
  • 60
  • 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,977
  • 5
  • 34
  • 62
1

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

But you can use getRequestURL().

Ivar
  • 6,138
  • 12
  • 49
  • 61
WGawel
  • 72
  • 6