Two Laptop Bag*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax and servlet problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax and servlet problem" Watch "Ajax and servlet problem" New topic
Author

Ajax and servlet problem

Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
Hi all genius people,

I have a problem implementing ajax with servlet.

My ajax function is sending the request to the servlet and the requirement is that "the servlet should forward the same request to another servlet" and moreover the ajax call should be able to get the response from that another servlet.

Do you guys have any idea.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Did you try it? What happened?

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Moved to the Servlets forum as this really has nothing to do with Ajax.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

What's the problem? You already know to use a forward. Just do it.

The fact that it's an Ajax request is completely irrelevant.
 
GeeCON Prague 2014
 
subject: Ajax and servlet problem