Página de envio de e-mail

Fiz essa página JSP, e qdo compile ela dar um erro em session

[size=“18”][color=“red”]PÁGINA[/color][/size]

<%@page contentType=“text/html; charset=iso-8859-1” language=“java” import=“javax.mail., javax.mail.internet., java.util.,
java.io.
, javax.activation.*” %>
<html>
<head><title>JSP Page</title></head>
<body>
<%
Properties p= new Properties();
p.put(“mail.host”,“SMTP.frb.br”);
Session [color=“red”]session[/color]= Session.getDefaultInstance(p,null);
MimeMessage msg= new MimeMessage(session);
try {
msg.setFrom(new InternetAddress(“joaquimma.br”));
msg.setRecipient(Message.RecipientType.TO, new InternetAddress (“jucaim@ig.com.br”));
msg.setSentDate(new Date());
msg.setSubject(“Teste e-mail”);
msg.setText(“Puta que pariu!!!funciona!!!”);
Transport.send(msg);
}
catch (AddressException e){
}
%>

[size=“24”][color=“yellow”]ERRO[/color][/size]

session isalready defined in _jspService(javax.servlet.http.HttpServletRequest.http.HttpServletResponse)

pow kara vc mesmo já assinalou o erro…

vc esqueceu que session já é uma intancia???
vc num pode redefinir session pq ele já é usado pelo jsp…
session é uma das intâncias implicitas

Salve,

tem um código tosco mas funciona:

vou passar para o teu e-mail.