Web.xml Example

From NovaOrdis Knowledge Base
Revision as of 05:14, 7 April 2017 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         version="3.0">

    <distributable/>

    <servlet>
        <servlet-name>ServletExample</servlet-name>
        <servlet-class>io.novaordis.playground.jee.resource.comp.ServletExample</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>ServletExample</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <env-entry>
        <env-entry-name>simple-module-int-example</env-entry-name>
        <env-entry-type>java.lang.Integer</env-entry-type>
        <env-entry-value>20</env-entry-value>
    </env-entry>

</web-app>