answersLogoWhite

0


Best Answer

The deployment descriptor is an xml file that contains the basic and most important information that is required to deploy a web application (Servlet)

Without this, the web server would not know, which requests to entertain/consider as requests to access this servlet.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Importance of deployment descriptor in servlet?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Computer Science

What is file descriptor?

In computer programming, a file descriptor (FD) is an abstract indicator for accessing a file. The term is generally used in POSIX operating systems.


How do you get ServletContext object in EJB - 38k?

get servlet context path from EJB


What is JAVA Servlet Development Kit?

Java Servlet Development Kit is an integrated development kit used to build, test, and deploy Java Servlet applications. JSDK allows most standard Web server such as Netscape servers, IIS, Apache and others to load servlets . JSDK is a suite of software for easing the development of Java servlets.


Is component and deployment diagram different or same?

Component and deployment diagrams are different UML diagrams. They both show components - but at different levels.Component diagram shows components and dependencies between them, interfaces they provide (implement) or require, classes that realize component. It has no deployment nodes - as deployment diagram does.Deployment diagram shows deployment architecture of system - how components and artifacts are deployed to nodes - execution environments and devices.Though we can show dependencies between components both on component diagrams as well as on deployment diagrams, but we are not showing implementation of components on deployment diagrams as we do on component diagrams.Note, that in UML 1.x deployment diagrams components were directly deployed to nodes. In UML 2.x artifacts are deployed to nodes, and artifacts could manifest components. So, on deployment diagrams components are now deployed to nodes indirectly through artifacts, and generally speaking in UML 2 deployment diagram could show only nodes and artifacts, and no components.


Where you can download java servlet development kit2.0?

There is no specific/separate servlet development kit. Servlets can be developed and compiled using the standard JDK and JRE. The only difference being the fact that - to run them you need a web server

Related questions

Why need webxml file for servlet?

Deployment Descriptor is probably the most important part of any web application. Even if you have all your servlets, JSPs, Jars etc set up properly, the system wouldn't run fine unless you set up the deployment descriptor properly


How do you run servlets?

Servlets can be run on Web servers like weblogic or websphere or tomcat. The servlet and other components of the j2ee project need to be packaged as an EAR and then deployed on the server. Based on the deployment descriptor we can access the servlet.


What is deployment descriptor in xml?

used for xml mappings


How do you create servlet?

Step 1: Write the servlet.Follow along as we write the ServletSample servlet and give you tips for writing your own servlets.Step 2: Compile the servlet.Use Qshell to compile the sample servlet and your own servlets.Step 3: Package and deploy an applicationUse the WebSphere Development Studio Client to package compiled code into a Web module before you install it on the server and to create a deployment descriptor (web.xml) file. For more information, see the WebSphere Development Studio Client.Step 4:Test the servletRun the ServletSample to make sure it works.


How do you run servlet in tomcat?

You Run a Servlet by deploying it on the server, which in this case is tomcat. We need to deploy the servlet in the Web Applications context. When we talk of a Web application's context, we are referring to that Web application's root directory or path within a particular server. A special directory exists within the application hierarchy named WEB-INF. This directory contains all things related to the application that aren't in the document root of the application. It is this WEB-INF directory that is the Web application's root directory, also referred to as the context. The most important file here is web.xml, the name of the WebApp deployment descriptor. Let us take a look at the various contents (files & folders) that will be present inside this WEB-INF directory: 1. /WEB-INF/web.xml - This is the Deployment Descriptor file 2. /WEB-INF/classes/ - This is the directory where all your java class files will be placed 3. /WEB-INF/lib/ - This is the folder where all your JAR files go. my tomcat is installed in c:\dev\java\Jakarta-tomcat-4.0.1. This is my TOMCAT_HOME. Remember that, this path that is referred by TOMCAT_HOME might vary from PC to PC depending on the installation preferences of the user. To Deploy the Servlet, you need to place the .class file corresponding to your servlet in the /WEB-INF/classes/ folder


What is the difference between servletcontext and servletconfig?

ServletContext Defines a set of methods that a servlet uses to communicate with its servlet container.ServletConfig is a servlet configuration object used by a servlet container used to pass information to a servlet during initialization. All of its initialization parameters can ONLY be set in deployment descriptor.The ServletContext object is contained within the ServletConfig object, which the Web server provides the servlet when the servlet is initialized.You can specify param-value pairs for ServletContext object in tags in web.xml file.The ServletConfig parameters are specified for a particular servlet and are unknown to other servlets. The ServletContext parameters are specified for an entire application outside of any particular servlet and are available to all the servlets within that application.By Santanu


What is difference between servlets and java server pages?

SERVLETS JSP 1. Servlet is a java class. 2. Servlet is a single instance multiple thread web application, In which HTML code can be included in java code. 3. In servlets the presentation logic and the B.logic is tightly coupled. 4. For every modification done in servlet program, we need to recompile and reload the application. 5. In servlets implicit objects are not available. 6. Servlets are supported to HTTP, FTP, and SMTP protocols. 7. Sevlets are need Deployment Descriptor file (web.xml) 1. Jsp is a file. 2. In jsp java code can be included in HTML code by using special tags. 3. In jsp's the presentation logic and B.logic are separated by defining the java beans. 4. If any modifications done in jsp's without recompiling and reloading , the modifications are reflected. 5. In jsp's implicit objects are available which is we can implement directly into jsp pages. 6. Jsp are supported to HTTP protocol only. 7. No need of Deployment Descriptor file (web.xml) rajus_1219@yahoo.co.in


What are types of servlet?

Http servlet and Generic servlet


What is java servlet chaining?

Servlet Chaining means the output of one servlet act as a input to another servlet. Servlet Aliasing allows us to invoke more than one servlet in sequence when the URL is opened with a common servlet alias. The output from first Servlet is sent as input to other Servlet and so on. The Output from the last Servlet is sent back to the browser. The entire process is called Servlet Chaining.


Can insert javascript coding in servlet?

No. Javascript code can be present inside a JSP but not inside a servlet. A Servlet is a pure java class.


What is servlet mapping?

A Servlet Mapping is a directive in the web.xml that tells the Servlet Container which class to use when a particular Servlet is called. A Servlet is a class within your Java Web Application. Let's say you have a servlet called MyServlet in the com.example.servlet package. You would need to have a Servlet Mapping pointing the path "/MyServlet" to the "com.example.servlet.MyServlet" class. Without the servlet mapping, you would not be able to invoke your servlet because the Servlet container would not know where it is. JSPs are different - they do not need mappings like this. JSPs exist within the WebRoot of the application, so they are always available. Servlets exist in the WEB-INF\Classes directory once your application is deployed.


What is a grail descriptor?

Holy