I am developing a small application for web applications. The goal is to create one welcome index.html page with Ajax + one servlet to handle ajax requests.
Although I thought everything would be alright with web.xml , I don't want to deploy it to / , but to /MyApp . The properties of the NetBeans project offer options for setting the path to the context that helps me get into /MyApp . However, it automatically adds the file /META-INF/context.xml , which is a bit confusing.
My questions:
1) Do I need a context.xml file to deploy /MyApp instead of / ?
2) If the answer is 1) no, how to do the same with web.xml only?
3) What is context.xml to web.xml ?
source share