• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

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.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic