Erro no c:if, bem simples

2 respostas
R

<%@ page language=“java” contentType=“text/html; charset=ISO-8859-1”
pageEncoding=“ISO-8859-1”%>
<%@ taglib uri=“http://java.sun.com/jstl/core” prefix=“c” %>

Aparece o seguinte erro:
Invalid attribute (test).

<!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> JSTL </title>
</head>
<body>
		<c:set var="idade" value="20"/>
		<c:if test="${20 > 18}">
			<h1>20 é maior que 18 </h1>			
		</c:if>
</body>
</html>

2 Respostas

S

rsaforuns, executei esse código aqui e funcionou corretamente!
20 é maior que 18 !

R

Olá, santos.fernando.

Aqui o eclipse acusa o seguinte erro:

Invalid attribute (test).

Criado 17 de maio de 2010
Ultima resposta 18 de mai. de 2010
Respostas 2
Participantes 2