what is web.xml?and its use?

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


Please Help Members By Posting Answers For Below Questions

What is scanner in java?

621


What is boolean false?

624


What is one third plus one third as a fraction?

570


Explain the difference between an Interface and an Abstract class?

724


What is OOP Language?

721






Why is a constant variable important?

592


Explain the importance of thread scheduler in java?

681


Explain creating threads by extending thread class ?

650


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

693


What is the disadvantage of java?

588


Can a main method be declared final?

670


What type of value does sizeof return?

634


What is class??

850


How do you use nextline in java?

598


Explain the difference between transient and volatile in java?

666