freepublicview
freepublicview

Reputation: 736

HTTP Status 405 - Request method 'POST' not supported (IE only)

When I submit the JSP form, I get 405 - Request method 'POST' not supported error message in IE.

The same application works fine in Google Chrome and Mozilla Firefox but throws error message in IE 6,7 and 8

My JSP:

<form:form name="create" action="submit.view" method="POST" commandName="xxx">
    ....
</form:form>

Controller:

@Controller
public class TicketController {
    @RequestMapping(value = "/submit.view", method = RequestMethod.POST)
    public ModelAndView submit(HttpServletRequest request,
            HttpServletResponse response,
            @ModelAttribute("xxx") Form TicketForm, BindingResult result)
            throws Exception {
            ...
            ...
    }
}

Can anyone explain why I get these error messages only in IE?

Upvotes: 0

Views: 7809

Answers (2)

freepublicview
freepublicview

Reputation: 736

Atlast worked. The problem arised was in security. We had used NTLM, but when we changed to LDAP the issue got resolved. Not sure why NTLM didnt work. But issue got resolved

Upvotes: 0

Denis Loshkarev
Denis Loshkarev

Reputation: 632

Try this:

@RequestMapping(value = "*/submit.view", method = RequestMethod.POST)

Maybe IE change form action url

Upvotes: 1

Related Questions