On Thu, 12 Dec 2002, RXZ JLo wrote:

> >
> > If you're serving your own static content with your
> > own servlet, then you
> > could do this.  Using a Filter lets you use Tomcat's
> > standard static file
> > serving servlet with no modifications.
>
>
> It seems I am confused about how RequestDispatcher
> works. From what I understand I think using a
> RequestDispatcher from within a Servlet or a Filter,
> is same - the request is viewed as a fresh request
> appropriately handled by Tomcat. This means, when I
> use RequestDispatcher(static_url).forward()+return in
> a servlet, it is the tomcat that is serving the static
> url, and in the same way as directly requested static
> urls.
>
> "If you're serving your own static content with your
> own servlet, then you could do this." -- I want
> RequestDispatcher to handle serving the static content
> in my own servlet.

Your understanding of how request dispatchers work is essentially correct.
I was pointing out that it's *possible* to implement redirection to
standard static resources using a filter.  Using your own servlets to
handle the static resources is also possible - just make sure that the
URLs you forward to are mapped to your servlet.

>
> Please clarify.
> Thanks,
> rf.
>

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to