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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -