473,750 Members | 2,211 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Having trouble in generating Jasper report!!!

58 New Member
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 method from a commandButton of a jsp page.

The java code executed successfully:
*************** *************** *************
getpdf()
{
jasperReport = JasperCompileMa nager.compileRe port( "c:\\Report.jrx ml");

jasperPrint = JasperFillManag er.fillReport(
jasperReport, new HashMap(), new JREmptyDataSour ce());

JasperExportMan ager.exportRepo rtToPdfFile(
jasperPrint, "c:\\sample.pdf ");

}

The Report.jrxml file:
*************** *********
<?xml version="1.0"?>
<!DOCTYPE jasperReport
PUBLIC "-//JasperReports//DTD Report Design//EN"
"http://jasperreports.s ourceforge.net/dtds/jasperreport.dt d">

<jasperReport name="Simple_Re port">
<detail>
<band height="20">
<staticText>
<reportElemen t x="180" y="0" width="200" height="20"/>
<text><![CDATA[Hello World!]]></text>
</staticText>
</band>
</detail>
</jasperReport>

jsp page code for calling that getpdf() method:
*************** *************** *************** *******
<h:commandButto n styleClass="but tonimg"
image="../../" value=" " action="#{Order List.getPdf}" />


Exception I got:
*************** ***
package net.sf.jasperre ports.engine does not exist
import net.sf.jasperre ports.engine.*;

For ur kind attention:
*************** *********
* I can able to generate pdf report successfully when i execute getpdf() as a stand alone java program.

* But i am getting exception, only wen i tend to call that getpdf() method from a jsp as mentioned above.The report was not compiled due to unavailable packages.

Did anyone face this problem,kindly get me a solution for this problem,I am almost stuck wit this crisis,dono know how to proceed further???

Awaiting ur ideas on it.

Thanks In Advance,
Sundar.
Sep 27 '07 #1
0 1586

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

Similar topics

1
2588
by: Anand | last post by:
Hi i am having trouble adding a recordset into the access database, the code seems to be working fine it passs and parses through all variables just fine without showing any errors and also when i access the recordset it displays the results, what the real issue is that the entry is not made into the database even though i use the Update command and i have also tried the BeginTrans and CommitTrans nothign seems to work and i am unable to...
0
1229
by: alexz | last post by:
Generating a report Alexander | Posted 11:05am 31. March 2004 Server Time | 3 Tables 1) Titles - The course titles 2) Courses - The schedules Courses 3) Students - Coueses a Student is taking and the student attendance Relationships are Titles.ID on Courses.TitleID
2
2524
by: ed | last post by:
i'm having trouble with a form. I want to be able to type in the address of the form with the data for the form items in the URL (ie: http://somesite.com/formpage.html?field1=data1&field2=data2). It saves the data if I type it in manually to an html file. But it won't do that if I use the URL notation above. How do I get it to do this. The HTML for the form is below. Thank in advance, ed
0
1445
by: Raghavendra | last post by:
hi, we r using forms authetication. problem :- i am using the below code to generate excel report but since we r using forms authetication.. after generating excel report the browser directs to login.apsx which is specified in web.config file. this code is in one file.aspx
0
1539
by: Jozef | last post by:
Hello, I'm having trouble with the download links on my web server. The error I'm getting is; CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process. It's a fresh Windows 2000 server install, but I also installed the ASP.net
2
2024
by: Stu | last post by:
Hi guys, I've been having trouble getting the clock function to work portably, please could I get some thoughts? <Possibly OT comments> It works fine on my laptop (under WinXP) and on my office computer (under Linux), but I have to write some code for the system simulator for the Cell BE processor (the thing inside the PS3), which is apparently a PPC architecture, and I can't get the clock function to
3
5991
by: suryavanshi | last post by:
how i call the jasper report file from the jsp
0
1399
by: techuse | last post by:
how to set no data when no data from db in jasper report? i got no data in report when even there is no data in db.but it displays with static fields.how to display with out static field?
0
1120
by: mdsamiuddin | last post by:
hey am new to jasper report....will u guide me how to get started with it.....i have an application..it is an yearly based application..if i select any year the web page should display content(or)report of that year.... thanks...
0
8836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9575
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9394
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.