I have this piece of code which I thought was a fairly standard way of redirect to another servlet
RequestDispatcher dispatch =
request.getRequestDispatcher("/ApplicationExceptionHandler");
dispatch.forward(request, response);
return;
The problem is when code like this runs through Static Code Analysis tools like AppScan it shows that the code is vulnerable to attacks. http://cwe.mitre.org/data/definitions/288.html
I have a servlet filter authenticating most URLs. In spite of this, the tool makes me non-complaint.
Any ideas on how to get around this?