Guest User

Untitled

a guest
Sep 17th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $.get({
  2. url: '/startChat',
  3. async: true,
  4. success: function (msgToAdd, textStatus, jqXHR) {
  5. alert(msgToAdd)
  6. },
  7. error: function (jqXHR, textStatus, errorThrown) {
  8. alert(errorThrown);
  9. }
  10. });
  11.  
  12. private HttpServletResponse firstResponse;
  13. @RequestMapping(value = "/startChat", method = RequestMethod.GET)
  14. public void startUserChat(HttpServletRequest request, HttpServletResponse response) {
  15. firstResponse = response;
  16. }
Add Comment
Please, Sign In to add comment