paribe
#1
Caro,
por aparece o warning no Eclipse
Invalid location of tag (h1).
na linha
<h1>Menu Principal</h1>
%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Menu Principal</title>
<h1>Menu Principal</h1>
</head>
<body>
<table width="75%" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">Escolha uma Opção </td>
</tr>
<tr></tr>
<tr></tr>
<tr>
<td>
<a >Lista de Clientes</a>
</td>
</tr>
<tr>
<td>
<a >Incluir de Cliente</a>
</td>
</tr>
<tr>
<td>
<a >Chama EJB Local</a>
</td>
</tr>
</table>
</body>
</html>
Porque essa linha deveria estar dentro das tags .
Blz? Flw! :thumbup:
paribe
#3
e porque esse warning na linha
<input type=submit value='Incluir' name="btIncluir">
Invalid location of tag (input).
<%@page import= "java.util.ArrayList" %>
<%@page import= "br.com.paulo.prova.model.Cliente" %>
<%@page import= "javax.servlet.http.*,java.util.Iterator" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=biso-8859-1">
<title>Inclusão</title>
</head>
<body>
<h1>Inclusão</h1>
<form name="form" method="post" action="controller?acao=SalvaInclui">
<table border =1>
<tr>
<td> Nome:</td>
<td> <input type=text name="nomecliente" value=""></td>
</tr>
<tr>
<td> DtInicial:</td>
<td> <input type=text name="di" value=""></td>
</tr>
<tr>
<td> DtFinal:</td>
<td> <input type=text name="df" value=""></td>
</tr>
<tr>
<input type=submit value='Incluir' name="btIncluir">
</tr>
</table>
</form>
</body>
</html>
Porque essa linha deveria estar dentro de tags
| .
Amigo, não dá pra ficar corrigindo os warnings de html no fórum, leia esse tutorial para aprender a lidar com esses problemas.
Flw! :thumbup: