This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 9307
    
  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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: "Request method 'GET' not supported" jsp viewResolver JstlView