what is web.xml?and its use?

Answer Posted / deepa vg

The web.xml is called the deployment descriptor. It is used
to provide details about the deployment of the web
application.

At a very minimum, it tells the servlet container the
version of the servlet specifications to use for the app.

Additionally, since you are using servlets, you have to use
it to provide details about the class of your servlets, and
the URL to use for mapping HTTP requests to the servlet.

You also can specify security roles and limited access for
pages, define attributes to store application-wide, define
specific pieces of information for JSPs, define MIME-Type-
Mappings, Welcome Page file names, and other details about
the Servlet Context.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is immutable class in java?

506


Is age a discrete variable?

526


Can we create an object of private class?

543


How static variable work in java?

595


What are loops in java? What are three types of loops?

545






If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

659


Why java applets are more useful for intranets as compared to internet?

577


Is array a class in java?

501


What is the final keyword?

549


How do I start learning java?

556


What are the advantages of autoboxing?

535


What are design patterns and please explain?

566


What is a predicate method?

560


How do I type unicode?

527


Explain the features of java?

589