I have the following code in JSP.
try {
...
if (...)
response.sendRedirect("secondPage.jsp");
...
} catch (Exception e) {
response.sendRedirect("thirdPage.jsp");
}
The page is not redirected as per the code.
I am getting IllegalStateException
in server.