|
Jetty example source code file (override-web.xml)
The Jetty override-web.xml source code
<?xml version="1.0" encoding="ISO-8859-1"?>
<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_2_5.xsd"
version="2.5">
<!-- This web.xml format file is an override file that is applied to the test webapp AFTER
it has been configured by the default descriptor and the WEB-INF/web.xml descriptor -->
<!-- Add or override context init parameter -->
<context-param>
<param-name>context-override-example
<param-value>a context value
</context-param>
<!-- Add or override servlet init parameter -->
<servlet>
<servlet-name>Dump
<init-param>
<param-name>servlet-override-example
<param-value>a servlet value
</init-param>
</servlet>
<!-- Add servlet mapping -->
<servlet-mapping>
<servlet-name>Dump
<url-pattern>*.more
</servlet-mapping>
<!-- Reset servlet class and/or start order -->
<servlet>
<servlet-name>Session
<servlet-class>com.acme.SessionDump
<load-on-startup>5
</servlet>
</web-app>
Other Jetty examples (source code examples)Here is a short list of links related to this Jetty override-web.xml source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.