jquery - How to load data as soon as welcome jsp gets loaded? -


i have index.jsp welcome page web application. now, hit url, need display table populated data coming backend services through ajax call. have mapped url using spring mvc , verified controller method getting hit.following jquery snippet,

 $(document).ready(function() {     var body = $("body");      $.ajax({         url : "${pagecontext.request.contextpath}/admin/product/display",          type : "get",          success : function(data) {             alert("alert");         }      }); }) 

i have observed alert not working. dont know going wrong here.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -