Código funciona como .html mas não funciona com o.jsp

3 respostas
C

Olá boa tarde. Tenho este código que funciona como html. Porém ele não funciona como jsp e eu preciso embuti-lo em um arquivo .jsp. Alguma dica?

Grato, Carlos.

<html>
<head>
	
	<script src="calendar.js"></script>
	
</head>

<body>
   <input type="text" name="data" value="dd/mm/yy" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)">
 
</body>
</html>

3 Respostas

thiago.correa

Para começar, o seu arquivo deve estar como a extensão jsp!

C

Isto mesmo. Se eu coloco teste.html ele funciona. Mas se eu o renomeio para teste.jsp ele não funciona. Este é o problema.

Giulliano
&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
&lt;title&gt;Insert title here&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;/body&gt;
&lt;/html&gt;
Criado 2 de julho de 2009
Ultima resposta 2 de jul. de 2009
Respostas 3
Participantes 3