--- "Cox, Charlie" <[EMAIL PROTECTED]> wrote:
> RequestDisatcher is for dispatching (parts of)the
> current request to other
> resources in the same context without involving the
> browser. This means that
> it is not a new request(filters/valves/etc do not
> get invoked), but it is
> processed by the servlet/filter just like a request
> directly to the
> servlet/filter
> 


Lets say in my servlet I modify the HttpServletRequest
changing the url to a statically accessible file, and
pass it on to RequestDispatcher.forward. Now, does the
DefaultServlet handle the static file?



> The DefaultServlet handles static content. This is
> not part of your servlet,
> it is its own built-in servlet. If you need to
> modify behavior(custom
> auth,etc) then you can set up a filter that is
> mapped to the static content.
> 
> for example:
> 
> the following mapping will cause 'MyFilter' to be
> run for any file requested
> from the /images directory. If you do not set up a
> custom servlet to handle
> /images/*, then the DefaultServlet will serve the
> request file from your
> 'images' directory provided your filter does not
> intercept the request(i.e.
> redirect to a login page).


You have not told why we cannot do this in a Servlet
using the RequestDispatcher.forward.


Btw, If you feel I am dragging this topic on too much
please say so - I would know I have not put down my
question properly.

Thank you,
-rf

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to