Response code from GET request to jsp page using SimpleFormController

I am trying to set up a http responder for incoming GET requests using a JSP page with a SimpleFormController.

I am receiving a GET request from a third party company, who are expecting a 200 http response back. However, even though my JSP is basically blank, when a GET request come in, it bypasses my JSP page and is automatically submitted to the onSubmit method in my controller and a http response of 201 is sent back.

How can I send a 200 response back, instead of 201?

Thanks,

Dave

Answers


If the onsubmit method is being called, it sounds to me like they are not sending a get request, but doing a post.

Make sure they are sending a get request.


Need Your Help

How to convert SQL Server XML type value (xsi:nil) of DateTime to null

sql sql-server xml sql-server-2005 tsql

Is there a way to query SQL Server XML type so that for an element with xsi:nil="true", return null instead of default datetime value, which is 1900-01-01 00:00:00.000?