Author: mputz
Date: 2011-08-31 06:33:33 -0400 (Wed, 31 Aug 2011)
New Revision: 7261
Modified:
epp/portal/branches/EPP_5_1_RH_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java
Log:
GTNPORTAL-1348 Login page then username or password is incorrect shown as JSP source
code.
Modified:
epp/portal/branches/EPP_5_1_RH_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java
===================================================================
---
epp/portal/branches/EPP_5_1_RH_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java 2011-08-31
09:41:08 UTC (rev 7260)
+++
epp/portal/branches/EPP_5_1_RH_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java 2011-08-31
10:33:33 UTC (rev 7261)
@@ -65,6 +65,11 @@
unregisterTokenCookie(req);
// Clear the token cookie
clearTokenCookie(req, resp);
+
+ //nguyenanhkien2a(a)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
context.getRequestDispatcher("/login/jsp/login.jsp").include(req, resp);
}