I want to redirect to the logOut url in filter,when some condition occurs.
I tried sendRedirect
and forward
method of requestDispatcher
...but getting this error. I have commented the sendredirect Code.
if(){
res.setHeader("fsd", "FAILURE");
res.sendError(HttpServletResponse.SC_FORBIDDEN);
/*res.sendRedirect("/searchReleaseLockLogout");*/
req.getRequestDispatcher("/searchReleaseLockLogout").forward(req, res);
return;
}