How to learn AJAX using jQuery in a Java web app

前端 未结 2 1134
星月不相逢
星月不相逢 2021-01-07 06:23

Can someone point me to tutorials using jQuery to create AJAX apps with Java (servlets). I was looking at the tutorial Implementing Ajax in Java web application using JQuery

2条回答
  •  囚心锁ツ
    2021-01-07 07:00

    He's assuming a lot about his audience. The tutorial is written for people who know Java web app development, at least to some basic level, and have dealt with a little Javascript, perhaps even tried a jquery tutorial or two. I think this is fine, as it means that someone who is familiar with all of that will be able to jump right in and get to the meat of the matter without having to filter out all the stuff they already know. Perhaps a paragraph at the top explaining those assumptions would be a good idea, but I digress...

    What jumps out at me as a potential gotcha is that the weather servlet is in the ajaxify package:

                      V------see?
    ajaxify.WeatherServlet
    

    so you will need to make sure you specify that package in WeatherServlet.java, or change it to match what you are doing. Also, no mention is made of including the jquery.js file in the of your JSP:

    
    
                                     
                  
提交回复
热议问题