If I submit this form:
<form id="confirmForm" method="POST">
<input type="hidden" name="guid" value="guidval"/>
</form>
to this url:
/AltRT?guid=guidval
maps to this controller method:
@RequestMapping(method = RequestMethod.POST)
public String indexPost(@RequestParam String guid)
I get both values for my guid. So the value guidis equal guidval,guidval. I would like to get only the value from the form.
Is there a way to tell Spring to ignore query string parameters?
EDIT for further clarification: the query string is left from another (get) request. Therefore, if I could clear the query string, that would also work. In addition, I do not want to edit the nameinput of the form, because I want this endpoint of the message to be available to other services without changing them.
source
share