Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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: 9597
36
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!