aspose file tools*
The moose likes Spring and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 9302
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "Request method 'GET' not supported" jsp viewResolver JstlView