| War (file Format) |
Article Index for War |
Website Links For War |
Information AboutWar (file Format) |
In Computing , a WAR file (short for '''Web Application Archive''') is a ZIP File used to distribute a set of Java Class es. A WAR may contain JSP s, HTML and related files, Servlets , and tag libraries. There are special files and directories within a WAR file. A WAR file may be digitally signed in the same way as a JAR File in order to assert that the code is trusted. The /WEB-INF directory in the WAR file contains a file named web.xml which defines the structure of the web application. If the web application is only serving JSP files, the web.xml file is not strictly necessary. If the web application uses Servlets then the servlet container uses web.xml to ascertain which servlet a URL request should be routed to. web.xml is also used to define context variables which can be referenced within the servlets and it is used to define environmental dependencies which the deployer is expected to set up. An example of this is a dependency on a mail session used to send email. The servlet container is responsible for providing this service. PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> Resource reference to a factory for javax.mail.Session instances that may be used for sending electronic mail messages, preconfigured to connect to the appropriate SMTP server. The /WEB-INF/classes directory is on the ClassLoader's classpath. This is where .class files are loaded from when the web application is executing. Any JAR files placed in the /WEB-INF/lib directory will also be placed on the ClassLoader's classpath. EXTERNAL LINKS SEE ALSO |
|
|