Antares88
08-06-2010, 09:14
Sto lavorando a una piccola webapp per un esame e stamattina mi sono imbattuto in questo problema assurdo:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="loginservice.*" %>
<!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=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>Benvenuto: <% String s = "test"; %></h1>
</body>
</html>
Andando a salvare Eclipse mi da errore dicendo "String cannot be resolved to a type" O_O
Com'è possibile ?
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="loginservice.*" %>
<!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=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>Benvenuto: <% String s = "test"; %></h1>
</body>
</html>
Andando a salvare Eclipse mi da errore dicendo "String cannot be resolved to a type" O_O
Com'è possibile ?