Servlet/URL binding
Wednesday, February 03, 2010
12:33 PM
[file]: describes bindings with web server
<web-app>
  <!-- Servlets: can be more than one -->
  <!-- the servlet that stores and retrieves persistent data --> 
  <servlet>
    <servlet-name>thingServlet</servlet-name>
    <servlet-class>
com.example.Example02.server.PersistentThingServiceImpl
    </servlet-class>
  </servlet>
  <!-- refer to this as [link] --> 
  <servlet-mapping>
    <servlet-name>thingServlet</servlet-name>
    <url-pattern>/simplepersistence/thing</url-pattern>
  </servlet-mapping>
  <!-- Default page to serve -->
  <welcome-file-list>
    <welcome-file>SimplePersistence.html</welcome-file>
  </welcome-file-list>
</web-app>