response.sendRedirect(response.encodeRedirectURL(request
if (ldap_enabled) response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/ldap-login")); else response.sendRedirect(response.encodeRedirectURL(request
    public void startAuthentication(Context context,            HttpServletRequest request, HttpServletResponse response)            throws ServletException, IOException    {        // Present the username/password screen        response.sendRedirect(response.encodeRedirectURL(request                .getContextPath()                + "/password-login"));    }