File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes AJAX  in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "AJAX  in JSP" Watch "AJAX  in JSP" New topic


Venkata Sirish
Ranch Hand

Joined: Apr 09, 2007
Posts: 112
I have a problem in running AJAX in JSP ...

Here " EMAIL_COMPONENT " is my web application and my default page
( configured in web.xml ) is MainPage.jsp .

Here is configuration in web.xml


when i run my application with the url ,


AJAX is not working ...

But when i explicitly hard code the url as below ...


AJAX is working perfectly ....

Can anyone help me ASAP ....

Thanks in Advance ...
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Duplicate of:

VenkataGuru Mitta,
Please don't post the same question multiple times.
If the answers you received in your original thread weren't satisfactory, add some follow up questions or ask for more clarification there.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: AJAX in JSP
It's not a secret anymore!