tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marten Lehmann <lehm...@cnm.de>
Subject ho to check if forward-target exists?
Date Wed, 27 Jul 2005 14:01:54 GMT
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 get the response-code 
somehow to check if the forward resulted in a file-not-found error?

Regards
Marten

---------------------------------------------------------------------
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