Working upload of photos (individual and zip)
[photos] / src / main / webapp / WEB-INF / web.xml
index eaa1fd7eefb04c179d1b5472348079a9b777ef85..96f44530581640addda3b6ca7d7263f377d511d6 100644 (file)
           or "deployment". If no configuration is found, "development" is the default.
     -->
 
+    <!-- The image sender servlet has the sole task of sending
+               images to the client, either a thumbnail or full image -->
+    <servlet>
+        <description>Servlet which sends the raw images.</description>
+        <display-name>ImageSender</display-name>
+        <servlet-name>ImageSender</servlet-name>
+        <servlet-class>org.wamblee.photos.servlet.ImageSender</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>ImageSender</servlet-name>
+        <url-pattern>/image/*</url-pattern>
+    </servlet-mapping>
+
+
     <filter>
         <filter-name>authentication</filter-name>
         <filter-class>org.wamblee.photos.security.AuthenticationFilter</filter-class>