Boa noite Caros!
Estou me matando aqui a um bom tempo e não consigo exibir uma
imagem na pagina xhtml. O resultado é apenas um sinal quadricular e no meio um X na cor vermelha,
isto é, não achou a imagem.
A estrutura de diretórios está aqui:
[IMG]http://i49.tinypic.com/jihopt.jpg[/IMG]
E o código xhtml está aqui:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" version="2.0">
<jsp:directive.page language="java"
contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
<jsp:text>
<![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
</jsp:text>
<jsp:text>
<![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
</jsp:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Teste</title>
</head>
<body>
<f:view>
<!--
<h:graphicImage library="resources/images" name="logo_linuxmall.png"/>
Obs.: Tentei assim e não deu.
-->
<h:graphicImage library="images" name="logo_linuxmall.png"/>
Teste 01.
</f:view>
</body>
</html>
</jsp:root>
Muito obrigado,
Att, André Vieira.