Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC: Getting resource not available for one Request Mapping while its working for the others.

 
rubbal sandhu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am getting The requested resource (/CompleteApp/home/WEB-INF/views/Login.jsp) is not available if we use the url as http://localhost:8080/CompleteApp/home/app?new but the Login.jsp is called when I ommit da 'app'
in url that is http://localhost:8080/CompleteApp/home?new.

Debugger tells me that same function is being called and its even returning the same string. But I dont understand why the first request is not giving me Login.jsp

My code is



and dispatcher servlet is :


Thanks in Advance
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is that the mapping you have

@RequestMapping("/home/**")

With the wild card, means that that wildcard portion will be added to the "Login" String coming out of the method and then the ViewResolver prepending and appending thse resolver Strings

So my guess is it is actually looking for

WEB-INF/views/app/Login.jsp and therefore that doesn't exist. But that is just a guess on my part. I am pretty sure, but still a guess.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic