Web.xml Example: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "<pre> </pre>")
 
No edit summary
 
Line 1: Line 1:
<pre>
<pre>
<?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>
</pre>
</pre>

Latest revision as of 05:14, 7 April 2017

<?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>