Win a copy of Terraform in Action this week in the Cloud forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

Ranch Hand
Posts: 269
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?


You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic