I have a URL say abc.com/somecontroller?someparam=1
which renders a form. Form on submit sends the form params to /ajaxAction
Is there a way I could get this abc.com/somecontroller?someparam=1
(i.e. the form URL?)
I am more interested in getting the someparam
value from the URL of the form.
PS: the above URL abc.com/somecontroller?someparam=1
is dynamically generated, so I can not access it otherwise.
And request.forwardURI
will give me /ajaxAction
(i.e. the URL of the action in form and not the url of the form itself).
EDIT: I have no control over form as it is also dynamic and user has hundreds of templates to select from. Each template has different no. of fields. So if I would prefer some other way to get the URL.