You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rf <ru...@yahoo.com> on 2003/02/27 10:31:55 UTC

Re: RequestDispatcher and WEB-INF

Hi
This is with reference to my query in the thread:
http://marc.theaimsgroup.com/?l=tomcat-user&m=104574185420433&w=2

Can somebody here tell me why I cannot use
RequestDispatcher to get the resource
"/WEB-INF/my.exe"?

Thanks
~rf


--- Erik Price <ep...@ptc.com> wrote:
> 
> 
> rf wrote:
> > It is strange that RequestDispatcher considers
> only
> > jsp and html, why not other extns like jpg/gif or
> why
> > not just any other resource - is this because of
> any
> > security concern?
> 
> I don't think it's security, but I looked at the
> Servlet spec (page 55) 
> and couldn't find a specific reason.  It looks like
> it was originally 
> intended that a RequestDispatcher should represent
> only a servlet, and 
> that you could forward to that servlet to continue
> processing the 
> request, but there is also the include method of
> RequestDispatcher for 
> when you wish to output /some/ data and then allow
> the included resource 
> to continue processing.
> 
> Perhaps the very fact that HTML files are allowed to
> be the target 
> resources of RequestDispatchers at all was added on
> at some later point 
> for developer convenience.  Certainly there is more
> [programmatic] 
> flexibility if you are forwarding to or including a
> servlet (or JSP, 
> which is really a servlet).
> 
> 
> Erik
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org