The easy way is:
boolean fileExists = (null!=servletContext.getResourceAsStream(myPath));

Where myPath is an "absolute path" relative to your webapp root. (yeah, that was poorly worded)

-Tim

Abid Ali Teepo wrote:
Hi

I use a filter to intercept all requests. The filter redirects all requests that don't have a session to a login page.

My problem is that the filter does so even if the requested file does not exist, so my question is how can i check whether the file exist ?

Abid


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to