ho to check if forward-target exists?

2005-07-27 Thread Marten Lehmann
Hello, I can start a forward like this e.g. through a filter: request.getRequestDispatcher(/test.html).forward(request, response); But how can I check if the ressource really exists? request.getRequestDispatcher(/test.html) always gives me a RequestDispatcher reference. Or is it possible to

Re: ho to check if forward-target exists?

2005-07-27 Thread Tim Funk
If you are looking for a physical resource use if (null==servletContext.getResource()) { ... yes it exists ... } -Tim Marten Lehmann wrote: Hello, I can start a forward like this e.g. through a filter: request.getRequestDispatcher(/test.html).forward(request, response); But how can I