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 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 ""Request method Watch ""Request method New topic
Author

"Request method 'GET' not supported" jsp viewResolver JstlView

Rajani Empranthiri
Greenhorn

Joined: May 31, 2012
Posts: 2
This is the configuration I am using:

But when I do /context/ instead of going to index.jsp it says GET method not supported.

If I go through a controller it is able to find index.jsp.

Any idea?

Thanks.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Hi Rajani welcome to JavaRanch.

Can you show us your web.xml file. Using a spring controller as a welcome file (a file which is opened when you directly hit the context path) can be a little tricky at times. There is a small article here on how to achieve it...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Rajani Empranthiri
Greenhorn

Joined: May 31, 2012
Posts: 2
Figured out the problem. I had commented out
//@RequestMapping("/login")
and not this @Controller in one of my controllers which had only POST method support.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: "Request method 'GET' not supported" jsp viewResolver JstlView
 
Similar Threads
encounter error message when try to use spring
Spring: Not able to redirect to a bean
help!!!! apply Spring face issue
Using JSP&Servlets with Spring
spring wont inject the entitymanager