aspose file tools*
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax and servlet problem" Watch "Ajax and servlet problem" New topic

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

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

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60082

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

Joined: Jan 10, 2002
Posts: 60082

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.
It is sorta covered in the JavaRanch Style Guide.
subject: Ajax and servlet problem
Similar Threads
doubt in transfering a vidoe file
Display a pdf in another jsp
Problem with AJAX
problem passing request to servlet
how a servlet can return value to a html?