servletOutputStream.println("<img alt=\"Logo .IST\" src=\"/ciapl/images/dotist-id.gif\"/>");
servletOutputStream.println("<img alt=\"Logo .IST\" src=\"" + APP_CONTEXT_APPENDER + "/images/dotist-id.gif\"/>");
    private void writeHTMLRedirectPage(final ServletOutputStream servletOutputStream, final HttpSession session) throws IOException {        servletOutputStream.println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");        servletOutputStream.println("<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"pt\" xml:lang=\"pt\">");        servletOutputStream.println("<head>");        servletOutputStream.println("<title>.IST - Login</title>");        servletOutputStream.println("<link href=\"/ciapl/CSS/logdotist.css\" rel=\"stylesheet\" media=\"screen\" type=\"text/css\" />");        servletOutputStream.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />");        servletOutputStream.println("</head>");        servletOutputStream.println("<body>");        servletOutputStream.println("<div id=\"container\">");        servletOutputStream.println("<div id=\"dotist_id\">");        servletOutputStream.println("<img alt=\"Logo .IST\" src=\"/ciapl/images/dotist-id.gif\"/>");        servletOutputStream.println("</div>");        servletOutputStream.println("<br />");        servletOutputStream.println("<div id=\"txt\">");        servletOutputStream.println("<h1>Login</h1>");        servletOutputStream.println("</div>");        servletOutputStream.println("<br />");        servletOutputStream.println("<div id=\"txt\"><center><p>");        servletOutputStream.println("Para ser redirecionado para a pgina que tinha selecionado antes da sesso expirar, carregue no boto Continuar");        servletOutputStream.println("</p></center></div>");        writeForm(servletOutputStream, session);        servletOutputStream.println("<br />");        servletOutputStream.println("<div id=\"txt\"><center><p>");        servletOutputStream.println("Se deseja seguir para a pgina inicial habitual, carregue no boto Pgina Inicial");        servletOutputStream.println("</p></center></div>");        servletOutputStream.println("<form method=\"get\" action=\"home.do\">");        servletOutputStream.println("<center><input type=\"submit\" value=\"Pgina Inicial\" class=\"button\"></center>");        servletOutputStream.println("</form>");        servletOutputStream.println("<br />");        servletOutputStream.println("<div id=\"txt\"><center><p>");        servletOutputStream.println("Se necessitar de ajuda, contacte-nos utilizando: <a href=\"mailto:suporte@dot.ist.utl.pt\">suporte@dot.ist.utl.pt</a>");        servletOutputStream.println("</p></center></div>");        servletOutputStream.println("</div>");        servletOutputStream.println("</body>");        servletOutputStream.println("</html>");    }