0

how to get URL parameter from HttpServletRequest class, or on another way in FormBasedAccessController?

If I have url: http://example.com/&idcompany=13

I want to access idcompany variable in URL.

Thanks.

sysdba
  • 57
  • 5
  • check this https://stackoverflow.com/questions/6847192/httpservletrequest-get-query-string-parameters-no-form-data – Hobroker May 22 '19 at 08:41
  • Thanks, I did. But always get null for all avaliable methods for parameters – sysdba May 22 '19 at 11:14
  • The query string in your URL is wrong. It must start with a '?'. The '&' is only used for additional parameters: http://example.com/?idcompany=13&anotherid=24 – Andre May 22 '19 at 14:56

0 Answers0