• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

AJAX in JSP

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Duplicate of:
https://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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic