Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX in JSP

 
Venkata Sirish
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
--------------------------------

<welcome-file-list>
<welcome-file>/JSP/MainPage.jsp</welcome-file>
</welcome-file-list>

when i run my application with the url ,

http://localhost:8080/EMAIL_COMPONENT/

AJAX is not working ...

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

http://localhost:8080/EMAIL_COMPONENT/JSP/MainPage.jsp

AJAX is working perfectly ....

Can anyone help me ASAP ....

Thanks in Advance ...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Duplicate of:
http://www.coderanch.com/t/292416/JSP/java/AJAX-JSP

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic