| 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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
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.
|
 |
 |
|
|
subject: "Request method 'GET' not supported" jsp viewResolver JstlView
|
|
|