<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.twig.es/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Basic_tomcat_web.xml_file</id>
		<title>Basic tomcat web.xml file - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Basic_tomcat_web.xml_file"/>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Basic_tomcat_web.xml_file&amp;action=history"/>
		<updated>2026-05-06T13:10:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.0</generator>

	<entry>
		<id>https://wiki.twig.es/index.php?title=Basic_tomcat_web.xml_file&amp;diff=3449&amp;oldid=prev</id>
		<title>George2: Created page with &quot;&lt;source lang=&quot;text&quot;&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt; &lt;!--   Licensed to the Apache Software Foundation (ASF) under one or more   contributor license agreements.  S...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Basic_tomcat_web.xml_file&amp;diff=3449&amp;oldid=prev"/>
				<updated>2016-07-01T14:08:39Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot;?&amp;gt; &amp;lt;!--   Licensed to the Apache Software Foundation (ASF) under one or more   contributor license agreements.  S...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
  Licensed to the Apache Software Foundation (ASF) under one or more&lt;br /&gt;
  contributor license agreements.  See the NOTICE file distributed with&lt;br /&gt;
  this work for additional information regarding copyright ownership.&lt;br /&gt;
  The ASF licenses this file to You under the Apache License, Version 2.0&lt;br /&gt;
  (the &amp;quot;License&amp;quot;); you may not use this file except in compliance with&lt;br /&gt;
  the License.  You may obtain a copy of the License at&lt;br /&gt;
&lt;br /&gt;
      http://www.apache.org/licenses/LICENSE-2.0&lt;br /&gt;
&lt;br /&gt;
  Unless required by applicable law or agreed to in writing, software&lt;br /&gt;
  distributed under the License is distributed on an &amp;quot;AS IS&amp;quot; BASIS,&lt;br /&gt;
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;br /&gt;
  See the License for the specific language governing permissions and&lt;br /&gt;
  limitations under the License.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE web-app&lt;br /&gt;
    PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN&amp;quot;&lt;br /&gt;
    &amp;quot;http://java.sun.com/dtd/web-app_2_3.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;web-app&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- General description of your web application --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;display-name&amp;gt;My Web Application&amp;lt;/display-name&amp;gt;&lt;br /&gt;
    &amp;lt;description&amp;gt;&lt;br /&gt;
      This is version X.X of an application to perform&lt;br /&gt;
      a wild and wonderful task, based on servlets and&lt;br /&gt;
      JSP pages.  It was written by Dave Developer&lt;br /&gt;
      (dave@mycompany.com), who should be contacted for&lt;br /&gt;
      more information.&lt;br /&gt;
    &amp;lt;/description&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Context initialization parameters that define shared&lt;br /&gt;
         String constants used within your application, which&lt;br /&gt;
         can be customized by the system administrator who is&lt;br /&gt;
         installing your application.  The values actually&lt;br /&gt;
         assigned to these parameters can be retrieved in a&lt;br /&gt;
         servlet or JSP page by calling:&lt;br /&gt;
&lt;br /&gt;
             String value =&lt;br /&gt;
               getServletContext().getInitParameter(&amp;quot;name&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
         where &amp;quot;name&amp;quot; matches the &amp;lt;param-name&amp;gt; element of&lt;br /&gt;
         one of these initialization parameters.&lt;br /&gt;
&lt;br /&gt;
         You can define any number of context initialization&lt;br /&gt;
         parameters, including zero.&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;context-param&amp;gt;&lt;br /&gt;
      &amp;lt;param-name&amp;gt;webmaster&amp;lt;/param-name&amp;gt;&lt;br /&gt;
      &amp;lt;param-value&amp;gt;myaddress@mycompany.com&amp;lt;/param-value&amp;gt;&lt;br /&gt;
      &amp;lt;description&amp;gt;&lt;br /&gt;
        The EMAIL address of the administrator to whom questions&lt;br /&gt;
        and comments about this application should be addressed.&lt;br /&gt;
      &amp;lt;/description&amp;gt;&lt;br /&gt;
    &amp;lt;/context-param&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Servlet definitions for the servlets that make up&lt;br /&gt;
         your web application, including initialization&lt;br /&gt;
         parameters.  With Tomcat, you can also send requests&lt;br /&gt;
         to servlets not listed here with a request like this:&lt;br /&gt;
&lt;br /&gt;
           http://localhost:8080/{context-path}/servlet/{classname}&lt;br /&gt;
&lt;br /&gt;
         but this usage is not guaranteed to be portable.  It also&lt;br /&gt;
         makes relative references to images and other resources&lt;br /&gt;
         required by your servlet more complicated, so defining&lt;br /&gt;
         all of your servlets (and defining a mapping to them with&lt;br /&gt;
         a servlet-mapping element) is recommended.&lt;br /&gt;
&lt;br /&gt;
         Servlet initialization parameters can be retrieved in a&lt;br /&gt;
         servlet or JSP page by calling:&lt;br /&gt;
&lt;br /&gt;
             String value =&lt;br /&gt;
               getServletConfig().getInitParameter(&amp;quot;name&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
         where &amp;quot;name&amp;quot; matches the &amp;lt;param-name&amp;gt; element of&lt;br /&gt;
         one of these initialization parameters.&lt;br /&gt;
&lt;br /&gt;
         You can define any number of servlets, including zero.&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;servlet&amp;gt;&lt;br /&gt;
      &amp;lt;servlet-name&amp;gt;controller&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;
      &amp;lt;description&amp;gt;&lt;br /&gt;
        This servlet plays the &amp;quot;controller&amp;quot; role in the MVC architecture&lt;br /&gt;
        used in this application.  It is generally mapped to the &amp;quot;.do&amp;quot;&lt;br /&gt;
        filename extension with a servlet-mapping element, and all form&lt;br /&gt;
        submits in the app will be submitted to a request URI like&lt;br /&gt;
        &amp;quot;saveCustomer.do&amp;quot;, which will therefore be mapped to this servlet.&lt;br /&gt;
&lt;br /&gt;
        The initialization parameter names for this servlet are the&lt;br /&gt;
        &amp;quot;servlet path&amp;quot; that will be received by this servlet (after the&lt;br /&gt;
        filename extension is removed).  The corresponding value is the&lt;br /&gt;
        name of the action class that will be used to process this request.&lt;br /&gt;
      &amp;lt;/description&amp;gt;&lt;br /&gt;
      &amp;lt;servlet-class&amp;gt;com.mycompany.mypackage.ControllerServlet&amp;lt;/servlet-class&amp;gt;&lt;br /&gt;
      &amp;lt;init-param&amp;gt;&lt;br /&gt;
        &amp;lt;param-name&amp;gt;listOrders&amp;lt;/param-name&amp;gt;&lt;br /&gt;
        &amp;lt;param-value&amp;gt;com.mycompany.myactions.ListOrdersAction&amp;lt;/param-value&amp;gt;&lt;br /&gt;
      &amp;lt;/init-param&amp;gt;&lt;br /&gt;
      &amp;lt;init-param&amp;gt;&lt;br /&gt;
        &amp;lt;param-name&amp;gt;saveCustomer&amp;lt;/param-name&amp;gt;&lt;br /&gt;
        &amp;lt;param-value&amp;gt;com.mycompany.myactions.SaveCustomerAction&amp;lt;/param-value&amp;gt;&lt;br /&gt;
      &amp;lt;/init-param&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Load this servlet at server startup time --&amp;gt;&lt;br /&gt;
      &amp;lt;load-on-startup&amp;gt;5&amp;lt;/load-on-startup&amp;gt;&lt;br /&gt;
    &amp;lt;/servlet&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;servlet&amp;gt;&lt;br /&gt;
      &amp;lt;servlet-name&amp;gt;graph&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;
      &amp;lt;description&amp;gt;&lt;br /&gt;
        This servlet produces GIF images that are dynamically generated&lt;br /&gt;
        graphs, based on the input parameters included on the request.&lt;br /&gt;
        It is generally mapped to a specific request URI like &amp;quot;/graph&amp;quot;.&lt;br /&gt;
      &amp;lt;/description&amp;gt;&lt;br /&gt;
    &amp;lt;/servlet&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Define mappings that are used by the servlet container to&lt;br /&gt;
         translate a particular request URI (context-relative) to a&lt;br /&gt;
         particular servlet.  The examples below correspond to the&lt;br /&gt;
         servlet descriptions above.  Thus, a request URI like:&lt;br /&gt;
&lt;br /&gt;
           http://localhost:8080/{contextpath}/graph&lt;br /&gt;
&lt;br /&gt;
         will be mapped to the &amp;quot;graph&amp;quot; servlet, while a request like:&lt;br /&gt;
&lt;br /&gt;
           http://localhost:8080/{contextpath}/saveCustomer.do&lt;br /&gt;
&lt;br /&gt;
         will be mapped to the &amp;quot;controller&amp;quot; servlet.&lt;br /&gt;
&lt;br /&gt;
         You may define any number of servlet mappings, including zero.&lt;br /&gt;
         It is also legal to define more than one mapping for the same&lt;br /&gt;
         servlet, if you wish to.&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;servlet-mapping&amp;gt;&lt;br /&gt;
      &amp;lt;servlet-name&amp;gt;controller&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;
      &amp;lt;url-pattern&amp;gt;*.do&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;
    &amp;lt;/servlet-mapping&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;servlet-mapping&amp;gt;&lt;br /&gt;
      &amp;lt;servlet-name&amp;gt;graph&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;
      &amp;lt;url-pattern&amp;gt;/graph&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;
    &amp;lt;/servlet-mapping&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Define the default session timeout for your application,&lt;br /&gt;
         in minutes.  From a servlet or JSP page, you can modify&lt;br /&gt;
         the timeout for a particular session dynamically by using&lt;br /&gt;
         HttpSession.getMaxInactiveInterval(). --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;session-config&amp;gt;&lt;br /&gt;
      &amp;lt;session-timeout&amp;gt;30&amp;lt;/session-timeout&amp;gt;    &amp;lt;!-- 30 minutes --&amp;gt;&lt;br /&gt;
    &amp;lt;/session-config&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/web-app&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>	</entry>

	</feed>