• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic