• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Ajax call request to spring doesn't trigger. Help Please

 
Ranch Hand
Posts: 282
2
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

  I'm trying to send a simple Ajax call to spring mvc and in return expecting an another view in the form ftl template. Below is my code trying to debug and error getting tried through F12 Developer Tools. Struck as unable to determine the issue. If someone who can see any fault in code please give me a clue. Thanks



"ajaxTest" is an another ftl (Freemarker template) file. Is it something wrong with ftl file and ajax call ? Please comment your ideas.





Error in IDE console:


Sep 17, 2017 12:12:46 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/Freemarker_SpringMVC_example/user/user/MyAjaxCall] in DispatcherServlet with name 'spring'

I'm unsure from where the extra user is added to /user/user/MyAjaxCall.  This trace comes on console when I click Save button on the form. Expecting this to be as [/Freemarker_SpringMVC_example/user/MyAjaxCall].
Spring config in in attachment but cant attach either txt nor xml file. Hence pasting here.



What is wrong in my code?

Thanks






 
reply
    Bookmark Topic Watch Topic
  • New Topic