Created
March 22, 2017 15:29
-
-
Save saqibmehmoodgit/75c041b86ada516f37ada9469efb3443 to your computer and use it in GitHub Desktop.
Servlet and Jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | |
response.setStatus(200); | |
response.getWriter().write("ALLAH KAREEM"); | |
} | |
////// | |
$("#b1").click(function(){ | |
$.post("/jquery/MySer", | |
{ | |
name: "Donald Duck", | |
city: "Duckburg" | |
}, | |
function(data, status){ | |
alert("Data: " + data + "\nStatus: " + status); | |
}); | |
////// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment