All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.WEB-INF.web.xml Maven / Gradle / Ivy

There is a newer version: 0.9.6
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<web-app 
	version="2.5"
	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">

    <context-param>
	    <param-name>webAppRootKey</param-name>
	    <param-value>webapp.minium</param-value>
	</context-param>
    
	<context-param>
	    <param-name>log4jConfigLocation</param-name>
	    <param-value>/WEB-INF/log4j.properties</param-value>
	</context-param>
	
	<listener>
	    <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
	</listener>

    <servlet>
        <servlet-name>minium</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>minium</servlet-name>
        <url-pattern>/minium/*</url-pattern>
    </servlet-mapping>

    <session-config>
    	<!-- session never expires -->
    	<session-timeout>-1</session-timeout>
    </session-config>
    
    <filter>
		<filter-name>encodingFilter</filter-name>
		<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
		<init-param>
			<param-name>encoding</param-name>
			<param-value>UTF-8</param-value>
		</init-param>
		<init-param>
			<param-name>forceEncoding</param-name>
			<param-value>true</param-value>
		</init-param>
	</filter>
	
	<filter-mapping>
		<filter-name>encodingFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping> 
    
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

</web-app>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy