<servlet-mapping> <servlet-name>VirtualFileServlet</servlet-name> <url-pattern>/vfiles/*</url-pattern> </servlet-mapping>
All URLs beginning with [context]/vfiles will be redirected to the VirtualFileServlet. Consult the servlet specification for details on the pattern matching algorithm, to know which mappings will be overriden by this declaration :-)
HTH, Rodrigo
Duncan wrote:
Don't know if this is possible with tomcat but;
I need people to be able to request virtual files in a directory of a web application.
As in: A user would request a file (which doesn't exist). This would call a jsp page which would return output based on the name of the file requested, but the user would still see the filename as the one which they originally requested.
I thought that perhaps changing the 404 error page to my jsp file may work, but is it possible to set the 404 error page for just one directory? I would prefer a differant method if there is one.
Thanks for any help anyone can give.
Duncan Smith Decker Telecom Ltd
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
