How to detect servlet forwarding problem?
Hi all experts,
I have a servlet that forward (using forward method in request dispatcher) the requests to a certain destination URL.
But if that URL is down or not found (like 500 or 404), forward method will not throw exception.
But how do I get the response code in this forwarding? Interpret the response header from output stream of response object? I did not found any related methods in java that can simply allow us to get the response code (only allow us to set but not get).
Thanks a lot!

