Answer Posted / sathish s t
web.xml file is the configuration file for your web application project ,each web application project should have this file and don't give another name instead of web.xml(default)
uses:
After the server(tomcat) get the request from the user, that ask the servletcontainer, where to find the servlet.The servletcontainer tells to tomcat, to go web.xml configuration file.In this file the servlet-mapping element gets the URL from the tomcat and maps the corresponding servelt.Then the tomcat take that servlet and gives response to user.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is thread life cycle in java?
Why use string handling in Java?
Can an interface extend a class?
Can java list be null?
Can we create more than one object singleton class?
What technique is carried out to find out if a particular string is empty?
Name few java.lang classes introduced with java 8 ?
what is heap memory?
What are different types of expressions?
What happens if a constructor is declared private?
What is a newline character in java?
What happens if we override only equals?
Which is better arraylist or vector?
Write a program to check for a prime number in java?
Explain the difference between treeset and treemap in java?