This is a servlet that renders thumbnails of images. This is an implementation of the PicoServlet API.
Place the thumbnailservlet.jar file in your WEB-INF\lib folder and add the following code block into the web.xml
<servlet>
<servlet-name>ThumbnailServlet</servlet-name>
<servlet-class>net.trajano.thumbnailservlet.ThumbnailServlet</servlet-class>
<init-param>
<param-name>thumbnail.source.path</param-name>
<param-value>C:\windows\temp</param-value>
</init-param>
<init-param>
<param-name>thumbnail.cache.path</param-name>
<param-value>C:\windows\temp\cache</param-value>
</init-param>
<init-param>
<param-name>thumbnail.width</param-name>
<param-value>100</param-value>
</init-param>
<init-param>
<param-name>thumbnail.height</param-name>
<param-value>100</param-value>
</init-param>
</servlet>