Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rajani Empranthiri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Rajani Empranthiri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic