Author: hfnukal
Date: 2011-07-07 09:17:42 -0400 (Thu, 07 Jul 2011)
New Revision: 6838
Modified:
epp/portal/branches/EPP_5_1_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_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java
===================================================================
---
epp/portal/branches/EPP_5_1_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java 2011-07-07
13:11:15 UTC (rev 6837)
+++
epp/portal/branches/EPP_5_1_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java 2011-07-07
13:17:42 UTC (rev 6838)
@@ -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);
}
Show replies by date