• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

need help for @RequestMapping

 
Ranch Hand
Posts: 31
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is the url-pattern in web.xml

Here is my controller


while accessing the url with http://localhost:8087/requestMapping/a.km , it is works, calls the handleKm() method.
but with http://localhost:8087/requestMapping/a.jsp , it should call handleJsp().but it does not work. result : HTTP Status 404 - /requestMappingExperiment/a.jsp.
why ??

If I chane the url-pattern from "/" to "/*" , although both method are called , but dont get to the appropriate pages.
May be the "org.springframework.web.servlet.view.InternalResourceViewResolver" is not working .

please help. I m new to SprimgMVC.
Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic