Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Android Security Essentials Live Lessons this week in the Android 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: 60799

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

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