HTTP状态405 – 不支持请求方法“POST”(Spring MVC)
我收到此错误: HTTP Status 405 - Request method 'POST' not supported
我要做的是创建一个带有下拉框的表单,该表单将根据在另一个下拉框中选择的其他值进行填充。 例如,当我在customerName
框中选择一个名称时,应运行.jsp页面中的onChange
函数,然后提交页面,然后再次使用customerCountry
框中的相应值加载。
但是我收到此HTTP状态405错误。 我已经在互联网上搜索了一个解决方案,但却找不到任何有用的东西。 这是我的代码的相关部分:
jsp页面的一部分
Insert title here .error { color: red; } function repopulate(){ document.deliveryForm.submit(); } function setFalse(){ document.getElementById("hasId").value ="false"; document.deliveryForm.submit(); // document.submitForm.submit(); (This was causing the error) } Create New Delivery