• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to handle POST method in Spring MVC?

 
Raghu Sha
Ranch Hand
Posts: 122
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Spring MVC.

login.jsp
<form:form action="home.html" method="POST" commandName="user">

LoginController.java
@RequestMapping(value = "/login",method = RequestMethod.POST)

Run in tomat & IE ,getting error as
Request method 'POST' not supported
The specified HTTP method is not allowed for the requested resource.

I should use post method not to display password & other data in URL.

How to handle it?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic