In a Servlet 2.3 environment like Tomcat 4, you can use the
ServletContext.getResourcePaths() method to list the contents of
directories in your web application.  It works even when the app is run
from an unpacked WAR, so it's more portable (on 2.3 or later conatiners,
of course).

Craig


On Sun, 13 Jan 2002, Mark wrote:

> Date: Sun, 13 Jan 2002 17:37:36 -0500
> From: Mark <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: List of jsp pages
>
> Have you taken a look at the Jarfile class?  It has some methods that may
> prove useful.
>
> At 01:15 PM 1/13/2002 -0800, you wrote:
> >Is there an easy way to get a list of JSP pages that
> >are inside the war file?
> >
> >I can do this with the java.io.File class but would
> >like to do it by get access to the resources in the
> >jar file?
> >
> >thanks,
> >
> >scott.
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to