Here is my servlet code:
PrintWriter out = null;
try
{
out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet EmpresaVuelos</title>");
out.println("<link rel='stylesheet' type='text/css' href='http://localhost:8080/Web_Modulo_1/recursos/estiloPrincipal.css' />");
out.println("<link rel='stylesheet' type='text/css' href='http://localhost:8080/Web_Modulo_1/recursos/ext-all.css' />");
out.println("<script type='text/javascript' src='http://localhost:8080/Web_Modulo_1/recursos/ext-base.<acronym title="JavaScript">js</acronym>'/>");
out.println("<script type='text/javascript' src='http://localhost:8080/Web_Modulo_1/recursos/ext-all-debug.<acronym title="JavaScript">js</acronym>' />");
out.println("<script type='text/javascript' src='http://localhost:8080/Web_Modulo_1/recursos/prueba.<acronym title="JavaScript">js</acronym>'/>");
out.println("</head>");
out.println("<body>");
out.println("<img src='http://localhost:8080/Web_Modulo_1/recursos/4.jpg' ></img>");
out.println("<div class='bordeado' style='width:100px;height:100px;' />");
out.println("</body>");
out.println("</html>");
}
catch(IOException io)
{
}
I would like to know what I get a blank page? When I remove all the link and script tags, the image in the body is rendered.
Try removing scripts / css one by one, there must be some problem there that messes up the presentation of the HTML elements.