so it is what we tried in whole thread. we decided to open application or error page there in servlet, not in jsp login page, through
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("http://localhost:8080/example/Application.html");
dispatcher.forward(getThreadLocalRequest(), getThreadLocalResponse());
so that it opens in same browser
