This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
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'