aspose file tools*
The moose likes Spring and the fly likes Spring MVC: Getting resource not available for one Request Mapping while its working for the others. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring MVC: Getting resource not available for one Request Mapping while its working for the others." Watch "Spring MVC: Getting resource not available for one Request Mapping while its working for the others." New topic
Author

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

rubbal sandhu
Greenhorn

Joined: Dec 20, 2010
Posts: 7
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

Joined: Feb 05, 2001
Posts: 17260
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring MVC: Getting resource not available for one Request Mapping while its working for the others.