12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Borland</strong> <strong>web</strong> container implementation<br />

Typical <strong>web</strong> application development process<br />

In a typical development phase for a <strong>web</strong> application:<br />

1 The <strong>web</strong> designer writes the JSP components, and the software developer creates<br />

the servlets for handling presentation logic.<br />

2 In conjunction, other software engineers write Java source code for servlets and the<br />

.jsp and .html for processing client request to the <strong>server</strong>-side components (EJB<br />

application tier, CORBA object, JDBC object).<br />

3 The Java class files, .jsp files, and the .html files are bundled with a deployment<br />

descriptor as a Web ARchive (WAR) file.<br />

4 The WAR file (or <strong>web</strong> module) is deployed in the <strong>Borland</strong> <strong>web</strong> container as a <strong>web</strong><br />

application.<br />

For more information about using the BES Deployment Descriptor Editor (DDE) to<br />

create a Web ARchive (WAR) file, go to the User's Guide, Using the Deployment<br />

Descriptor Editor section.<br />

Web application archive (WAR) file<br />

In order for the <strong>Borland</strong> <strong>web</strong> container to deploy a <strong>web</strong> application, the <strong>web</strong> application<br />

must be packaged into a Web ARchive (WAR) file. This is achieved by using the<br />

standard Java Archive tool jar command.<br />

The WAR file includes the WEB-INF directory. This directory contains files that relate to<br />

the <strong>web</strong> application. Unlike the document root directory of the <strong>web</strong> application, the files<br />

in the WEB-INF directory do not have direct interaction with the client. The WEB-INF<br />

directory contains the following:<br />

Directory/File name<br />

/WEB-INF/<strong>web</strong>.xml<br />

/WEB-INF/<strong>web</strong>-borland.xml<br />

/WEB-INF/classes/*<br />

/WEB-INF/lib/*.jar<br />

Contents<br />

the deployment descriptor<br />

the deployment descriptor with “<strong>Borland</strong>-specific DTD.”<br />

the servlets and utility classes. The application class loader<br />

loads any class in this directory.<br />

the Java ARchive (JAR) files which contain servlets, beans, and<br />

other utility classes useful to the <strong>web</strong> application. All JAR files<br />

are used by the <strong>web</strong> application class loader to load classes<br />

from.<br />

<strong>Borland</strong>-specific DTD<br />

The <strong>web</strong>.xml file contains the standard deployment descriptor facilities for <strong>web</strong><br />

applications. However, the <strong>web</strong>-borland.xml file contains some <strong>Borland</strong>-specific<br />

extensions. The following tables describes the <strong>Borland</strong>-specific elements and how to<br />

use them. Some of these augment the standard constructs and some are new<br />

constructs.<br />

Chapter 4: Web components 33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!