web-app

Java Servlet Programming, 2nd Edition > C. Deployment Descriptor DTD Reference > <web-app>

 
< BACKCONTINUE >
<web-app>

Synopsis

<!ELEMENT web-app (icon?, display-name?, description?, distributable?,                    context-param*, servlet*, servlet-mapping*, session-config?,                    mime-mapping*, welcome-file-list?, error-page*, taglib*,                    resource-ref*, security-constraint*, login-config?,                     security-role*, env-entry*, ejb-ref*)>

Description

The <web-app> element is the root element of the deployment descriptor for a web application.

<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app>     <servlet>         <servlet-name>hi</servlet-name>         <servlet-class>HelloWorld</servlet-class>     </servlet> </web-app>


Last updated on 3/20/2003
Java Servlet Programming, 2nd Edition, © 2001 O'Reilly

< BACKCONTINUE >


Java servlet programming
Java Servlet Programming (Java Series)
ISBN: 0596000405
EAN: 2147483647
Year: 2000
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net