In my application, I have 2 filters:
1) First, which throws an exception and I call response.sendError(UNAUTHORIZED.getStatusCode(), "My message");
2) Second for logging request and response to the database.
I have a column "error_message" and I want to save an error message from the filter 1 in the filter 2. How can I do this on weblogic? I have javax.servlet.http.HttpServletResponse and I can only take status:
response.getStatus()
Using Spring I can call
ServletRequestContext.current().getErrorMessage()
but when I use weblogic it does not work.