This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60740

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: 60740

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