home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Jetty example source code file (override-web.xml)

This example Jetty source code file (override-web.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Jetty tags/keywords

add, add, after, after, iso-8859-1, iso-8859-1, reset, reset, this

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:



my book on functional programming

 

new blog posts

 

Copyright 1998-2019 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.