users@glassfish.java.net

Re: Can I mapping an external directory to appear within the webapp?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Fri, 23 Mar 2007 18:20:30 -0700

glassfish_at_javadesktop.org wrote On 03/23/07 06:04 PM,:

>Thanx Jan.
>
>Do these mappings honor Servlet filter?
>
>If I have a filter on "*.jpg", will that filter fire before the container serves up the resource like it would for an internal static resource??
>
>

Yes, of course.

The alternate mappings are considered only by the following
javax.servlet.ServletContext methods:

  getRealPath(String path)
  getResource(String path)
  getResourceAsStream(String path)


Jan

>[Message sent by forum member 'whartung' (whartung)]
>
>http://forums.java.net/jive/thread.jspa?messageID=209708
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>