<servlet> <servlet-name>MyServlet</servlet-name> <jsp-file>/MyPage.jsp</jsp-file> </servlet>
jakarta wrote:
You can set up mappings to jsp pages
<servlet> <servlet-name>org.apache.jps.MyPage_jsp</servlet-name> <servlet-class>org.apache.jps.MyPage_jsp</servlet-class> </servlet>
<servlet-mapping> <servlet-name>org.apache.jps.MyPage_jsp</servlet-name> <url-pattern>/some/dir/you/would/like/to/use/*</url-pattern> </servlet-mapping>
Any page called from /some/dir/you/would/like/to/use/ Ie /some/dir/you/would/like/to/use/itworks.jsp
Would go to the MyPage.jsp
-----Original Message-----
From: Duncan [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 11:02 AM
To: Tomcat Users List
Subject: Virtual Files
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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
