473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

jsp with jasper report

this is the code but it will giving the errror
plz check it
plz replya
its urjent
Expand|Select|Wrap|Line Numbers
  1. <%@ page langauage="java" %>
  2. <%@ page import="net.sf.jasperreport.engine.*" %>
  3. <%@ page import="net.sf.jasperreport.engine.util.*" %>
  4. <%@ page import="net.sf.jasperreport.engine.export" %>
  5. <%@ page import="net.sf.jasperreport.engine.JREmptyDataSource" %>
  6. <%@ page import="java.util.*" %>
  7. <%@ page import="java.sql.*" %>
  8. <%@ page import="java.io.*" %>
  9. <%@ page import="java.text.*" %>
  10. <%
  11.     JasperPrint jasperPrint;
  12.     String path=getServletContext().getRealPath();
  13.     JasperReport jasperReport=JasperCompilerManager.compileReport("C://apache-tomcat-6.0.16//webapps//ROOT//Emp//report/"+sample+".jrxml");
  14.     Map parameters=null;
  15.  
  16.     Class.forName("org.postgresql.Driver");
  17.     Connection con=DriverManager.getConnection("jdbc:postgresql://localhost:5433/master/","postgres","a*n$and");
  18.  
  19.     String dest="C:/apache-tomcat-6.0.16/webapps/ROOT/Emp/report/"+sample+".html"
  20.     jasperPrint=JasperFillManager.fillReport(jasperReport, new HashMap(),con);
  21.     JasperExportManager.exportReportToHtmlFile(jasperPrint, dest);
  22. %>
  23. <jsp:forword page='<%="/"+sample+".html"%>'/>
Feb 17 '09 #1
2 7075
r035198x
13,262 8TB
Post the error message that you got.
Feb 17 '09 #2
My problem is that i don't to hold the that in the server side even that generate the report in dynamically in the client side.

watting for you reponse
Oct 15 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Grant Collins | last post by:
Hi I am writing a web based application as part of a small project that I am undertaking using servlets beans and jsp. I already have one servlet - bean - jsp page working and I have written...
3
by: Lord0 | last post by:
Hi there, First of all I apologise for being a PHP noob. Is there a PHP equivalent of Java's Jasper Reports? http://jasperforge.org/sf/projects/jasperreports Basically Jasper is a bunch...
1
by: gsuns82 | last post by:
Hi all, I am working jasper reports,i have got partial result for the code below. jasperReport = JasperCompileManager.compileReport( "c:\\Jreport.jrxml"); ...
0
by: gsuns82 | last post by:
Hi all, * I am working on jasper reports,I have successfully generated sample pdf report from a java program. * But i am getting problems when i tend to call that report genarating...
2
by: bjverni | last post by:
Hi, I am calling a stored procedure in my Jasper Reports, but it is giving me an error. Would it possible to execute stored procedures in the field wizard when you create the Jasper Report...
4
karthickRAJKUMAR
by: karthickRAJKUMAR | last post by:
i have assign the work to do in jasper report,which will give the report dynamically,please give some idea i am not able to find the solution yet(dynamically insence we have to sent the value in...
3
by: suryavanshi | last post by:
how i call the jasper report file from the jsp
4
karthickkuchanur
by: karthickkuchanur | last post by:
I am using JasperReports 2.0.5. I am trying to use the background tag to generate a watermark image for my reports. JRXML source is below and also attached.The problem is that I do not get HTML...
0
by: Sundhas | last post by:
Hey, i want to Use Dynamic japser to create reports of my database i.e MYSQL. Plus, i want to know that can i send attirbutes to dynamic jasper which a user is going to select from the front end...
0
by: Sundhas | last post by:
Hey! Scenario:What my project do right now 1. User Enters his Login and Password through his mobile phone and servlets contacts webservice of Authentication and user gets authenticated...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.