Versión Completa : Netbeans VisualWeb - problemas con DOCTYPE
poppetmaster
enero 30, 2007, 02:12
Hola a todos.. bueno tengo un inconveniente con el IDE en la creacion de un proyecto web, donde necesito crear un DOCTYPE, la cual segun el siguiente link (http://www.onjava.com/pub/a/onjava/2004/04/21/JSP2part3.html) se genera de la siguiente manera:
<jsp:output doctype-root-element="html"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
lo cual coloco en en codigo jsp, pero al acceder a la pagina y mirar el codigo fuente me encuentro con lo siguiente:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="no-cache" http-equiv="Pragma" />
<meta content="no-cache" http-equiv="Cache-Control" />
<meta content="no-store" http-equiv="Cache-Control" />
<meta content="max-age=0" http-equiv="Cache-Control" />
<meta content="1" http-equiv="Expires" />Por lo tanto obtengo un muy bonito error en iexplorer, sino indico que genere el DTD el IDE me lo genera de la siguiente manera
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="no-cache" http-equiv="Pragma" />
<meta content="no-cache" http-equiv="Cache-Control" />
<meta content="no-store" http-equiv="Cache-Control" />
<meta content="max-age=0" http-equiv="Cache-Control" />
<meta content="1" http-equiv="Expires" /> pero el resultado de la CSS no es el adecuado.
De antemano gracias por la informacion que me puedan brindar.
vBulletin®, Copyright ©2000-2008, Jelsoft Enterprises Ltd.