PDA

View Full Version : CS506- Web Design and Development assignment no 3



Vuhelper
06-14-2011, 01:49 AM
Assignment No. 03
SEMESTER Spring 2011
CS506- Web Design and Development

Question:

Explain tomcat directory structure and its importance correspondence to server side programming in no more than ten steps. This assignment is based on negative marking if any unnecessary information or too much detail is provided your marks will be deducted.

Vuhelper
06-18-2011, 11:07 PM
What is Tomcat?

Tomcat is the official reference implementation of the Java Servlet 2.2 and JavaServer Pages 1.1 technologies. Developed under the Apache license in an open and participatory environment, it is intended to be a collaboration of the best-of-breed developers from around the world.
1:Tomcat is a container for servlets
2: Tomcat can act as a simple standalone server for Web applications that use HTML, servlets, and JSP
3:Apache is an industrial-strength, highly optimized server that can be extended with Tomcat
4:To create servlets, you really should have two directory structures:

1: A development directory, in which you can write and partially debug your code
2:A deployment directory, in which you put “live” code

5: Tomcat requires a particular set of directories for your web application

6: It is extremely picky about having everything in the right place!

7: Since your web application must typically co-exist with other web applications, you should use packages to avoid name conflicts
This further complicates the Tomcat directory structure

8:By default, Tomcat's configuration is determined by the contents of the server.xml file found in Tomcat's conf directory. This file specifies the sequence of modules (a.k.a. interceptors) that should participate in the operation of this instance of Tomcat.

9:Prior to reading the server.xml file, Tomcat reads the modules.xml file which is also found in the conf directory. This file specifies mappings between module names and the class that implements the module. This simplifies the syntax in servers.xml and allows you to update a module's class by updating just modules.xml. The server.xml, and possibly other files, do not have to change.

10:To allow for customization of Tomcat's configuration without requiring modification of modules.xml and server.xml, Tomcat will read additional files during startup. In addition to modules.xml, Tomcat will read any file in the conf directory that matches the pattern modules-*.xml. Likewise for server.xml, by default Tomcat will read additional files which match the pattern server-*.xml.

ITS JUST AN IDEA DONT COPY OR PASTE