tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duncan <dsm...@deckertelecom.net>
Subject Re: Virtual Files
Date Mon, 03 Nov 2003 13:05:16 GMT
Thanks guys - works great.

Rodrigo Ruiz wrote:

> Well, if you don't precompile JSPs,there is another way to map a JSP:
>
> <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:dsmith@deckertelecom.net]
> >>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: tomcat-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


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


Mime
View raw message