error en reporte jsp
Publicado por sergio Pinilla (1 intervención) el 20/12/2011 00:37:17
ESTOY DESARROLLANDO UNA APLICACION EN NETBEAS CON MYSQL Y IREPORT YA AGREGE TODAS LAS LIBRERIAS PERO PS CUNADO CONPILO MI REPORTE.JSP
ME SALE EL SIGUIENTE ERROR ERROR REPORTE JSP
net.sf.jasperreports.engine.JRRuntimeE… No such parameter REPORT_CONTEXT
Y EN LA EJECUCION SAle lo siguiente :
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
El codigo es el siguiente :
<%@page import="java.lang.String"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="net.sf.jasperreports.engine.*"%>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.sql.*" %>
<%@page import="conexion.conexion"%>
<%@page import="net.sf.jasperreports.engine.JRRu…
<html>
<body>
<%
/*Parametros para realizar la conexión*/
try
{
byte[] bytes= new byte[1048576];
Connection conexi;
conexi=conexion.getmysql();
File reportFile = new File(application.getRealPath("reportes/r…
Map parameters = new HashMap();
bytes = JasperRunManager.runReportToPdf(reportFi… (), parameters,conexi);
response.setContentType("application/p…
response.setContentLength(bytes.length…
ServletOutputStream ouputStream = response.getOutputStream();
ouputStream.write(bytes, 0, bytes.length);
ouputStream.flush();
ouputStream.close();
}
catch(Exception ex){
out.println("error :"+ex);
}
%>
</body>
</html>
cualsera el error ?¿?¿? porfa alluda
ME SALE EL SIGUIENTE ERROR ERROR REPORTE JSP
net.sf.jasperreports.engine.JRRuntimeE… No such parameter REPORT_CONTEXT
Y EN LA EJECUCION SAle lo siguiente :
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
El codigo es el siguiente :
<%@page import="java.lang.String"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="net.sf.jasperreports.engine.*"%>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.sql.*" %>
<%@page import="conexion.conexion"%>
<%@page import="net.sf.jasperreports.engine.JRRu…
<html>
<body>
<%
/*Parametros para realizar la conexión*/
try
{
byte[] bytes= new byte[1048576];
Connection conexi;
conexi=conexion.getmysql();
File reportFile = new File(application.getRealPath("reportes/r…
Map parameters = new HashMap();
bytes = JasperRunManager.runReportToPdf(reportFi… (), parameters,conexi);
response.setContentType("application/p…
response.setContentLength(bytes.length…
ServletOutputStream ouputStream = response.getOutputStream();
ouputStream.write(bytes, 0, bytes.length);
ouputStream.flush();
ouputStream.close();
}
catch(Exception ex){
out.println("error :"+ex);
}
%>
</body>
</html>
cualsera el error ?¿?¿? porfa alluda
Valora esta pregunta


0