image - Servlet Filter for URIs in alternatedocroot -


is possible apply servletfilters on content delivered via alternatedocroot?

filter mapping

<filter-mapping>     <filter-name>staticcontentauthenticationfilter</filter-name>     <url-pattern>/img/users/*</url-pattern> </filter-mapping> 

alternate docroot

<glassfish-web-app>     <context-root>/xxx</context-root>     <property name="alternatedocroot_1" value="from=/img/* dir=c:/appdata" /> </glassfish-web-app> 

problem statement:
authentication before serving static content (specifically images). since serving images cannot use database nor can keep images in .war file

sorry! above code works! there error elsewhere in application.


Comments