Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is web.xml?and its use?

Answers were Sorted based on User's Feedback



what is web.xml?and its use?..

Answer / shankar reddy

The web.xml file provides configuration and deployment
information for the Web components that comprise a Web
application. Examples of Web components are servlet
parameters, servlet and JavaServer Pages (JSP) definitions,
and Uniform Resource Locators (URL) mappings.

Is This Answer Correct ?    5 Yes 0 No

what is web.xml?and its use?..

Answer / 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

what is web.xml?and its use?..

Answer / shiva

web.xml is useful to map the url pattern given by the client
to the appropriate servlet. This is the main purpose of the
web.xml.

Is This Answer Correct ?    5 Yes 1 No

what is web.xml?and its use?..

Answer / dsr

web.xml is the mapping of servlet pages and context
parameters and configuration files.
It is used for access the web-based application of
perticular servlet.

Is This Answer Correct ?    4 Yes 0 No

what is web.xml?and its use?..

Answer / dipesh

It is place where we declare instead of hard coding any
thing ..it is read by our container for like where to route
the request ,security roles,error-pages class name etc

Is This Answer Correct ?    2 Yes 1 No

what is web.xml?and its use?..

Answer / 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

what is web.xml?and its use?..

Answer / harikumar

web.xml is used specify the name of our servlet
class,servlet name & url-pattern to the server.
Then onle server can identify our class after calling from
the browser defined in servlet mapping tag inside the
web.xml.
web.xml is used to map our application.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Core Java Interview Questions

Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }

3 Answers  


What is Interface?

8 Answers   BMC,


what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?

3 Answers  


What is the use of put method?

0 Answers  


What are the methods used to implement for the key object in the hash map?

0 Answers  


Explain thread in java?

0 Answers  


What happens if we don’t override run method ?

0 Answers  


How many digits is int32?

0 Answers  


What is the difference between pageContext and page implicit objects in jsp?

9 Answers   Gspann Technologies, Merrill Lynch, Polaris,


What is flush buffer?

0 Answers  


How are destructors defined in java?

0 Answers  


How do you square a number in java?

0 Answers  


Categories