private static final Log LOG = ExoLogger.getLogger(ErrorLoginServlet.class.getName());
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
WCIController wciController = new GateinWCIController(getServletContext());
PortalContainer pContainer = PortalContainer.getInstance();
ServletContext context = pContainer.getPortalContext();
// Unregister the token cookie
unregisterTokenCookie(req);
// Clear the token cookie
clearTokenCookie(req, resp);
//nguyenanhkien2a@gmail.com: We set content-type here for using RequestDispatcher.include() method below
//We can't use RequestDispatcher.forward() if we want to use some response information for output such as clearing cookies, etc
resp.setContentType("text/html; charset=UTF-8");
// This allows the customer to define another login page without changing the portal
wciController.showErrorLoginForm(req, resp);
}