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 are the advantages and disadvantages of object cloning?
What are latest features introduced with java 8?
How do constructors use this() and super()?
What is anti pattern in java?
What is meant by call by reference?
What does the three dot emoji mean?
Why do we need data serialization?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What are the features of junit?
Define how can we find the actual size of an object on the heap?
How to sort double array in java?
how its run?
Can we override private methods?
What is return null in java?
Why are lists ordered in java?