aspose file tools*
The moose likes Spring and the fly likes How to handle POST method in Spring MVC? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to handle POST method in Spring MVC?" Watch "How to handle POST method in Spring MVC?" New topic
Author

How to handle POST method in Spring MVC?

Raghu Sha
Ranch Hand

Joined: Feb 02, 2013
Posts: 122
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.
 
subject: How to handle POST method in Spring MVC?