[gatein-commits] gatein SVN: r8059 - epp/portal/branches/EPP_5_2_Branch/component/web/security/src/main/java/org/exoplatform/web/login.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Nov 14 18:05:35 EST 2011


Author: hfnukal
Date: 2011-11-14 18:05:34 -0500 (Mon, 14 Nov 2011)
New Revision: 8059

Modified:
   epp/portal/branches/EPP_5_2_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java
Log:
JBEPP-1119 Unsucessful login page is not displayed when using Apache with mod_jk

Modified: epp/portal/branches/EPP_5_2_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java	2011-11-14 22:32:16 UTC (rev 8058)
+++ epp/portal/branches/EPP_5_2_Branch/component/web/security/src/main/java/org/exoplatform/web/login/ErrorLoginServlet.java	2011-11-14 23:05:34 UTC (rev 8059)
@@ -67,6 +67,11 @@
       unregisterTokenCookie(req);
       // Clear the token cookie
       clearTokenCookie(req, resp);
+      
+      //nguyenanhkien2a at 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);
    }



More information about the gatein-commits mailing list