This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 121
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?
 
 
subject: How to handle POST method in Spring MVC?
 
Similar Threads
How to submit a request in order to handled by doHead ?
how to pass parameters between methods using Spring MVC
can One webapp contain Spring MVC and Spring RESTFul services
Spring MVC with Acegi Security
How to handle 'Success Messages' in Spring MVC in a manner similar to 'Error Messages'