JasperReport with jsp

hi
i'm new in jasper reports. i would like to have help in the configuration n compilation of this reports. i use iReport to create my jrxml file and hav written the following coding:
import java.sql.Connection;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.engine.xml.JRXmlLoader;
import net.sf.jasperreports.engine.design.JasperDesign;
import net.sf.jasperreports.view.JasperViewer;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.xml.JRXmlLoader;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.design.JasperDesign;
import net.sf.jasperreports.view.JasperViewer;
import java.sql.Connection;
import java.sql.DriverManager;
public class CustSys {
public static void main(String[] args) {
try {
JasperDesign jasperDesign = JRXmlLoader.load("CIS.xml");
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
Map parameters = new HashMap();
parameters.put("Title", "Customer Information");
Connection conn = null;
try {
     //String url = "jdbc:mysql://localhost/cust";
     Class.forName ("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://localhost/cust");
catch (ClassNotFoundException e) {
System.out.println("Error loading driver: " + e.getMessage());
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn);
               JasperManager.printReportToPdfFile(jasperPrint,"CIS.pdf");
// JasperExportManager.exportReportToPdfFile(jasperPrint, "CIS.pdf");
JasperViewer.viewReport(jasperPrint,false);
} catch (JRException e) {
e.printStackTrace();
i have error in this coding. can anyone point out to me the error?
i'm using mysql database. i'm running on tomcat 4.1.29. i would like my jsp page to have the jasper report generated after the user press the click button. whr shd i keep the jrxml files as well as the java file i written above. in tomcat folder? or jasperreport folder? i have set my classpath pointing to the jars file of jasperreports. wat else shd i do?

Hi,
I'm the same problem.
I create a simple reports with IReport.
And i want to call my report in my java code.
But i don't reach that.
Look my java code:
<%@ page import="net.sf.jasperreports.engine.JRDataSource" %>
<%@ page import="net.sf.jasperreports.engine.JRExporterParameter" %>
<%@ page import="net.sf.jasperreports.engine.JasperExportManager" %>
<%@ page import="net.sf.jasperreports.engine.JasperPrint" %>
<%@ page import="net.sf.jasperreports.engine.JasperReport" %>
<%@ page import="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource" %>
<%@ page import="net.sf.jasperreports.engine.export.JRHtmlExporter" %>
<%@ page import="net.sf.jasperreports.engine.export.JRHtmlExporterParameter" %>
<%@ page import="net.sf.jasperreports.engine.export.JRXlsExporter" %>
<%@ page import="net.sf.jasperreports.engine.export.JRXlsExporterParameter" %>
<%@ page import="net.sf.jasperreports.engine.JasperCompileManager" %>
<%@ page import="net.sf.jasperreports.engine.JasperFillManager" %>
<%@ page import="net.sf.jasperreports.engine.util.JRLoader" %>
<%@ page import="net.sf.jasperreports.engine.xml.JRXmlLoader" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.Vector" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.DriverManager" %>
<%@ page import="java.sql.ResultSet" %>
<%@ page import="java.sql.Statement" %>
<%@ page import="net.sf.jasperreports.engine.design.JasperDesign" %>
<%@ page import="net.sf.jasperreports.engine.xml.JRXmlLoader" %>
<%@ page import="net.sf.jasperreports.engine.JRException" %>
<%@ page import="org.gjt.mm.mysql.Driver" %>
JasperReport report = null;
JasperPrint print = null;
//design compile (my error is here!!)
JasperDesign design = JRXmlLoader.load("D:/" + "reporttest.jrxml");
//report compile
report = JasperCompileManager.compileReport(design);
try {
if (connection == null) {
Class.forName(driver).newInstance();
connection = DriverManager.getConnection(base, user, pass);
catch (Exception e) {
System.err.println("Error connection");
e.printStackTrace();
HashMap params = new HashMap();
print = JasperFillManager.fillReport(report,params,connection);
And my log error:
org.apache.jasper.JasperException: org/apache/commons/digester/SetNestedPropertiesRule
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
Why have I this error?
Thanks to your help me :'(

Similar Messages

  • Integrating JasperReports with JSPs

    I'm developing a web application using JSPs on windows 2000 machine. I'm using apache+tomcat as the web server. Using Jasper Reports for report generation.
    Currently i'm developing reports using HTML. At the bottom of that report page i've a button named 'Export to Excel'. Upon clicking it, i'm exporting the html report to excel. Since i'm unable to include header and footer information and repitition of some fields on every page, i selected Jasper Reports for report generation. My problem is i don't know how to integrate Jasper Reports with JSPs. I don't know how to create reports. I created smaple reports using iReport visual editor for jasper reports. Now i want to integrate it with my we application.
    If anyone has any idea, please inform.
    Thanks.

    RTFM
    http://jasperreports.sourceforge.net/quick.how.to.html#classes
    Main classes to use when working with JasperReports
    net.sf.jasperreports.engine.JasperCompileManager
    net.sf.jasperreports.engine.JasperFillManager
    net.sf.jasperreports.engine.JasperPrintManager
    net.sf.jasperreports.engine.JasperExportManager
    This classes represent a fa���ade to the JasperReports engine. They have various static methods that simplify the access to the API functionality and can be used to compile an XML report design, to fill a report, to print it, or to export to PDF, HTML and XML files.
    net.sf.jasperreports.view.JasperViewer
    This can be used to view the generated reports.
    net.sf.jasperreports.view.JasperDesignViewer
    This can be used to view the report design.
    http://jasperreports.sourceforge.net/tutorial/index.html
    JasperReports is a powerful open source reporting tool that has the ability to deliver rich content onto the screen, to the printer or into PDF, HTML, XLS, CSV and XML files. It is entirely written in Java and can be used in a variety of Java enabled applications to generate dynamic content.
    Its main purpose is to help creating page oriented, ready to print documents in a simple and flexible manner.
    JasperReports organizes data retrieved from a relational database through JDBC according to the report design defined in an XML file. In order to fill a report with data, the report design must be compiled first.
    The compilation of the XML file representing the report design is performed by the compileReport() method exposed by the net.sf.jasperreports.engine.JasperManager class.
    Through compilation, the report design is loaded into a report design object that is then serialized and stored on disk (net.sf.jasperreports.engine.JasperReport). This serialized object is then used when the application wants to fill the specified report design with data. In fact, the compilation of a report design implies the compilation of all Java expressions defined in the XML file representing the report design. Various verifications are made at compilation time, to check the report design consistency. The result is a ready to fill report design that will be then used to generate documents on different sets of data.
    In order to fill a report design, one can use the fillReportXXX() methods exposed by the net.sf.jasperreports.engine.JasperManager class. Those methods receive as a parameter the report design object, or a file representing the specified report design object, in a serialized form, and also a JDBC connection to the database from where to retrieve the data to fill the report.
    The result is an object that represents the ready to print document (net.sf.jasperreports.engine.JasperPrint) and can be stored onto the disk, in a serialized form, for later use, or can be delivered to the printer, to the screen or can be transformed into a PDF, HTML, XLS, CSV or XML document.

  • SQL query with JSP and WML-parameters

    Hey,
    Could you help me?
    I'm trying to do the following. WML deck card 1 send parameter to same WML deck's card help. I try to read the parameter with JSP in card help by putting the parameter to SQL query, but it doesn't work. I can read the parameter with WML in card help. I can also print the value of the parameter with JSP if I generate WML with JSP.
    /*parameter sending from card 1 to card help*/
    out.println("<go href='#helpcard'>");
    out.println("<setvar name='valittukurssi' value='$(valittukurssi)'/>");
    /*parameter read with WML in card help */
    <p>Valitse kurssi.
    $valittukurssi</p>
    /'parameter read with JSP by generating WML with JSP*/
    out.println("<p>$valittukurssi</p>");
    /* SQL query with JSP */
    ResultSet uudettulokset = uusilause.executeQuery("select * from kurssi where lyhenne='$valittukurssi'");
    Thanks,
    Rampe

    You're problem is easy to fix. You're confusing WML variables with JSP variables. See below:
    >
    /*parameter sending from card 1 to card help*/
    out.println("<go href='#helpcard'>");
    out.println("<setvar name='valittukurssi'
    value='$(valittukurssi)'/>");
    Above you set a var that will work on the phone, not in JSP.
    /*parameter read with WML in card help */
    <p>Valitse kurssi.
    $valittukurssi</p>
    Yes the above does display the parameter, because it is a client side WML var, but you cannot use this variable in the JSP code (that's why your SWL fails).
    /'parameter read with JSP by generating WML with
    JSP*/
    out.println("<p>$valittukurssi</p>");Here's you're problem, the above line is EXACTLY the same as the one before it. When the container parses through this JSP code it translates the above line to:
    <p>$valittukurssi</p> on the WML page and the CLIENT uses it's local variable to display it.
    What you need and want is to have a variable that can be used in JSP code and output to your WML page. Here's how it's done:
    out.println("<go href='#helpcard'>");
    String some_name = "valittukurssi";
    out.println("<setvar name='"+some_name+"'
    value='$("+some_name+")'/>");
    //note that you may have to escape the ( and ) with a \
    //so we displayed the variable above into the WML page, now we can use it in the SQL query:
    /* SQL query with JSP */
    ResultSet uudettulokset =
    uusilause.executeQuery("select * from kurssi where
    lyhenne='"+some_name+"'");//the end of the command is: " ' " ) ;
    Frank Krul
    Got Node?

  • How to use Jasperreport with Application Express?

    HI,
    We are really want to 'print out' from our apex applications, but by far no easy way to do so.
    (BI too expensive and complicated)
    I am tring to install Jasperreports with apex, but I don't know how to do it, I downloaded the windows version of Jasperreport.
    Any idea how to install and configure it to work with my apex applications?
    Peter

    See this thread for information on using Jasper Reports with APEX.. If this helps, please mark this thread as answered and assign points!
    APEX to Jasper parameter passing
    Thank you,
    Tony Miller
    Webster, TX

  • Create a new directory in server with JSP

    Hi,
    How can I create a directory in server with JSP.
    File dir = new File("a");
    dir.mkdir();
    does not work. what do I do?
    best regards,

    Hi
    Check the following things.
    1. What is the path where you are creating the directory.
    2. Do you permissions to create file in that directory.
    3. do a delete on that filename if that exists just to be sure. isdeleted = filedir.delete(). Check the boolean flag isdeleted too.
    Thanx and Regards
    Aruneesh

  • Error While Running JasperReport in JSP Page

    Dear All
    i am running Report JasperReport using JSP and i am sure that i attached jasperreports-3.0.0.jar and i am getting this error
    net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:4: package net.sf.jasperreports.engine does not exist
    import net.sf.jasperreports.engine.*;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:5: package net.sf.jasperreports.engine.fill does not exist
    import net.sf.jasperreports.engine.fill.*;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:18: cannot find symbol
    symbol: class JREvaluator
    public class PDFReport_1279813100172_968010 extends JREvaluator
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:25: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_LOCALE = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:26: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_TIME_ZONE = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:27: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_VIRTUALIZER = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:28: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_FILE_RESOLVER = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:29: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_ReportTitle = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:30: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_SCRIPTLET = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:31: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_PARAMETERS_MAP = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:32: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_CONNECTION = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:33: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_CLASS_LOADER = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:34: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_DATA_SOURCE = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:35: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_URL_HANDLER_FACTORY = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:36: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_IS_IGNORE_PAGINATION = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:37: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_FORMAT_FACTORY = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:38: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_MAX_COUNT = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:39: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_TEMPLATES = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:40: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    private JRFillParameter parameter_REPORT_RESOURCE_BUNDLE = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:41: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    private JRFillField field_Publisher = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:42: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    private JRFillField field_CatalogId = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:43: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    private JRFillField field_Journal = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:44: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    private JRFillField field_Edition = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:45: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    private JRFillField field_Author = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:46: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    private JRFillField field_Title = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:47: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    private JRFillVariable variable_PAGE_NUMBER = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:48: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    private JRFillVariable variable_COLUMN_NUMBER = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:49: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    private JRFillVariable variable_REPORT_COUNT = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:50: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    private JRFillVariable variable_PAGE_COUNT = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:51: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    private JRFillVariable variable_COLUMN_COUNT = null;
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:74: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_LOCALE = (JRFillParameter)pm.get("REPORT_LOCALE");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:75: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_TIME_ZONE = (JRFillParameter)pm.get("REPORT_TIME_ZONE");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:76: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_VIRTUALIZER = (JRFillParameter)pm.get("REPORT_VIRTUALIZER");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:77: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_FILE_RESOLVER = (JRFillParameter)pm.get("REPORT_FILE_RESOLVER");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:78: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_ReportTitle = (JRFillParameter)pm.get("ReportTitle");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:79: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_SCRIPTLET = (JRFillParameter)pm.get("REPORT_SCRIPTLET");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:80: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_PARAMETERS_MAP = (JRFillParameter)pm.get("REPORT_PARAMETERS_MAP");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:81: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_CONNECTION = (JRFillParameter)pm.get("REPORT_CONNECTION");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:82: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_CLASS_LOADER = (JRFillParameter)pm.get("REPORT_CLASS_LOADER");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:83: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_DATA_SOURCE = (JRFillParameter)pm.get("REPORT_DATA_SOURCE");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:84: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_URL_HANDLER_FACTORY = (JRFillParameter)pm.get("REPORT_URL_HANDLER_FACTORY");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:85: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_IS_IGNORE_PAGINATION = (JRFillParameter)pm.get("IS_IGNORE_PAGINATION");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:86: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_FORMAT_FACTORY = (JRFillParameter)pm.get("REPORT_FORMAT_FACTORY");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:87: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_MAX_COUNT = (JRFillParameter)pm.get("REPORT_MAX_COUNT");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:88: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_TEMPLATES = (JRFillParameter)pm.get("REPORT_TEMPLATES");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:89: cannot find symbol
    symbol : class JRFillParameter
    location: class PDFReport_1279813100172_968010
    parameter_REPORT_RESOURCE_BUNDLE = (JRFillParameter)pm.get("REPORT_RESOURCE_BUNDLE");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:98: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    field_Publisher = (JRFillField)fm.get("Publisher");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:99: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    field_CatalogId = (JRFillField)fm.get("CatalogId");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:100: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    field_Journal = (JRFillField)fm.get("Journal");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:101: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    field_Edition = (JRFillField)fm.get("Edition");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:102: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    field_Author = (JRFillField)fm.get("Author");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:103: cannot find symbol
    symbol : class JRFillField
    location: class PDFReport_1279813100172_968010
    field_Title = (JRFillField)fm.get("Title");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:112: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    variable_PAGE_NUMBER = (JRFillVariable)vm.get("PAGE_NUMBER");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:113: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    variable_COLUMN_NUMBER = (JRFillVariable)vm.get("COLUMN_NUMBER");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:114: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    variable_REPORT_COUNT = (JRFillVariable)vm.get("REPORT_COUNT");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:115: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    variable_PAGE_COUNT = (JRFillVariable)vm.get("PAGE_COUNT");
    ^
    C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:116: cannot find symbol
    symbol : class JRFillVariable
    location: class PDFReport_1279813100172_968010
    variable_COLUMN_COUNT = (JRFillVariable)vm.get("COLUMN_COUNT");
    ^
    57 errors
         at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193)
         at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:219)
         at jsp_servlet.__catalog._jspService(__catalog.java:84)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: ORA ORA on Jul 22, 2010 1:35 PM

    Well, apparently the JSP compiler cannot see the japser report files, simple as that. You may want to ask on a Jasper-related forum for how to deploy Jasper Reports libraries to WLS.
    John

  • Running other server-side applications with JSP

    Hi,
    I'd like to know, if is possible run with JSP (Servlet, or JavaBean) other application, which support COM. I used something like this in JavaScript:
    application=new ActiveXObject("excel.application");
    and I had all possibilities of its API. I'd like to use excel as data source for user-friendly data input.
    Thanks for all suggestions

    Hi,
    I don't realy understand your question.
    If your javascript work using activeX, this code is executed on the client side (like the excel application and the excel file).
    You can, with a JSP, generate the html page that contain the script.
    Where is the problem ?

  • Displaying an Image in an Excel Spreadsheet with JSP - URGENT

    Hi Peoples
    I can transfer the table I am using in to excel with JSP by doing:
    <%@ page contentType ="application/vnd.ms-excel" %>
    this works fine, though I have an image that sits within the table that I want to be displayed as well.
    Can this be done?? If so how???
    Thanks

    Try to insert the image into sheet from it's URL not from it's local file path
    Best regards

  • A problem in RMI with JSP..pls help

    RMI with Java is working fine,but...
    1. I am facing a problem when i use RMI with JSP..its throwing an exception during "Naming.lookup"..here is my code snippet:
    // i have stored the ServerInf and other classes in a package and i have imported it in the jsp code....object ref is getting created but lookup is throwing an exception...thoguh RMI registry is working(started)
    <%
    try {
    ServerInf ref = (ServerInf)Naming.lookup("rmi://localhost:1098/Server_bind");
    catch (Exception ex) {
    ex.printStackTrace();
    %>
    Pls tel me the cause.
    2. If i try to use RMI with Servlet and JSP, then wen the JSP runs then, it simply calls the servlet file and displayes a lonk to it instead of executing the servlet class. pls help me with this too...below is the invoking statement:
    <form method=post action='http://localhost:8080/servlet/MyRMIservlet'>
    hello <input type=submit value=submit>

    And the exception and error message is.....

  • How can I create a Login-page with jsp???

    Hello,
    I have to create a page with JSP code on the Netweaver Developer Studio.
    But I do not know how I do it.
    Can anyone tell me what to write in the portalapp.xml?
    An example would be very helpful.
    Thank you
    Greetings

    As you can see in the example:
    The portalapp.xml file (deployment descriptor) provides configuration information for your application, and defines the components and services in your application. For each component and service, you specify the implementing Java class and configuration information.
    For more information on the format of the portalapp.xml, see Deployment Descriptor (portalapp.xml).
    <application>
        <application-config>
            <property name="SharingReference" value="com.sap.portal.navigation.service, com.sap.portal.navigation.api_mimeservice, com.sap.portal.navigation.helperservice"/>
            <property name="Vendor" value="MY_COMPANY"/>
            <property name="SecurityArea" value="PERMISSION"/>
        </application-config>
        <components>
            <component name="SimpleNavigationExample">
                <component-config>
                    <property name="ClassName" value="MY_CLASS"/>
                    <property name="SecurityZone" value="no_safety"/>
                </component-config>
                <component-profile/>
            </component>
        </components>
        <services/>
    </application>
    You can only update in this example, your class name and other details:
    <property name="Vendor" value="sap.com"/>
    <property name="SecurityArea" value="MyCompany"/>
    <property name="ClassName" value="LOGINCLASS"/>
    <property name="SecurityZone" value="no_safety"/>
    Modify this portalapp.xml file as follows:
           1.      NAVIGATION SERVICE, so you must add references to the following portal applications that define these services:
            com.sap.portal.navigation.service
            com.sap.portal.navigation.api_mimeservice
            com.sap.portal.navigation.helperservice
           2.      In the <application-config> section, create the following properties that help to define the security zone for all components and services in this application:
    ○     Vendor: String identifying the company or organization that provided the application, for example, sap.com.
    ○     SecurityArea: String identifying the security area for the application, for example, NetWeaver.portal.
           3.      In the <component-config> section for the mySiteMap component, create the property SecurityZone to define the specific security zone for the component.
    For Permission, check this document:
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/489e2df5ee4e35e10000000a1553f6/frameset.htm

  • Help me!! How to use JavaScript with JSP ??

    I am using JDeveloper and I created a screen in JSP which uses a bean for database connectivity and retriving info onto the page.
    The page has a ListBox where list items are populated from the database.My requirement is
    whenever the list is changed the page shuold be refreshed with the selected item info.
    I tried to use 'JavaScript' for triggering the event with 'onChange' event of the ListBox.But the event is not getting invoked. I think JavaScript is not working with JSP.
    Please help me with how to Use javaScript with JSP or any other alternative where I can meet my requirement.
    I have one more question...I have gone through the JSP samples in OTN and I am trying do download the sample 'Travel servlet' which show list of countries...etc
    I have also gone through the 'readme' but I don't know how to extract .jar file.
    I would be great if you could help me in this.
    Thanks!!
    Geeta
    null

    We have a similar need. We have used Cold Fusion to display data from Our Oracle Database. We have a simple SElect Box in HTML populated with the oracle data. When someone selects say the State of Pennsylvania. then we have an On change event that runs a Javascript to go get all the cities in Pennsylvania.
    Proble we are having is that inorder for the Javascript to work , we currently have to send all the valid data.
    Do you know of any way to dynamically query the the Oracle database in Javascript

  • Excel with JSP

    Hi everyone
    I relly do need some help...
    I have an Oracle Database and I need to:
    1. View my results (of any request) in an excel spreadsheet using JSP (I think this part is the easiest...)
    2. And that is my real problem: Use an excel spreadsheet to insert values in the database with JSP...
    I hope I made it clear because even for me it's really tricky...
    Thanks a lot...
    Yassi

    There is a example in Marty Hal;l's book"Core Servlets and JSP pages".
    It is static, but the same idea would work coming from a database.
    <HTML>
    <HEAD>
    <TITLE>Comparing Apples and Oranges</TITLE>
    </HEAD>
    <BODY>
    <CENTER>
    <H2>Comparing Apples and Oranges</H2>
    <%
    String format = request.getParameter("format");
    if ((format != null) && (format.equals("excel"))) {
    response.setContentType("application/vnd.ms-excel");
    %>
    <TABLE BORDER=1>
    <TR><TH></TH><TH>Apples<TH>Oranges
    <TR><TH>First Quarter<TD>2307<TD>4706
    <TR><TH>Second Quarter<TD>2982<TD>5104
    <TR><TH>Third Quarter<TD>3011<TD>5220
    <TR><TH>Fourth Quarter<TD>3055<TD>5287
    </TABLE>
    </CENTER>
    </BODY>
    </HTML>

  • Use of Threads with JSP's

    Can you use threads in a web application that uses JSP's plus Servlets and Beans ?
    We have a JRUN 3.1 application using JSPs, Servlets and Beans. Shortly after we went live it became apparent that any 2 users using the same object experienced problems as one object was overwriting another. In a panic the problem was solved by whacking SYNCHRONISED on all objects.
    Now we want to write another application, are there strategies for using Threads with JSPs?
    Would this be part of the webserver configuration or would the application be coded in a certain way ?
    Please can you give me a simplistic answer or point me to some documentation that gives a simple overview.
    Thanks Steve

    Hi,
    You can use thread with jsp, i am sending u a example
    package thread;
    import java.io.Serializable;
    public class TaskBean implements Runnable, Serializable {
    private int counter;
    private int sum;
    private boolean started;
    private boolean running;
    private int sleep;
    public TaskBean() {
    counter = 0;
    sum = 0;
    started = false;
    running = false;
    sleep = 100;
    protected void work() {
    try {
    Thread.sleep(sleep);
    counter++;
    sum += counter;
    } catch (InterruptedException e) {
    setRunning(false);
    public synchronized int getPercent() {
    return counter;
    public synchronized boolean isStarted() {
    return started;
    public synchronized boolean isCompleted() {
    return counter == 100;
    public synchronized boolean isRunning() {
    return running;
    public synchronized void setRunning(boolean running) {
    this.running = running;
    if (running)
    started = true;
    public synchronized Object getResult() {
    if (isCompleted())
    return new Integer(sum);
    else
    return null;
    public void run() {
    try {
    setRunning(true);
    while (isRunning() && !isCompleted())
    work();
    } finally {
    setRunning(false);
    And JSP page start.jsp
    <% session.removeAttribute("task"); %>
    <jsp:useBean id="task" scope="session"
    class="thread.TaskBean"/>
    <% task.setRunning(true); %>
    <% new Thread(task).start(); %>
    <jsp:forward page="status.jsp"/>
    ///////////////// status .jsp
    <jsp:useBean id="task" scope="session"
    class="thread.TaskBean"/>
    <HTML>
    <HEAD>
    <TITLE>JSP Progress Bar</TITLE>
    <% if (task.isRunning()) { %>
    <SCRIPT LANGUAGE="JavaScript">
    setTimeout("location='status.jsp'", 1000);
    </SCRIPT>
    <% } %>
    </HEAD>
    <BODY>
    <H1 ALIGN="CENTER">JSP Progress Bar</H1>
    <H2 ALIGN="CENTER">
    Result: <%= task.getResult() %><BR>
    <% int percent = task.getPercent(); %>
    <%= percent %>%
    </H2>
    <TABLE WIDTH="60%" ALIGN="CENTER"
    BORDER=1 CELLPADDING=0 CELLSPACING=2>
    <TR>
    <% for (int i = 10; i <= percent; i += 10) { %>
    <TD WIDTH="10%" BGCOLOR="#000080"> </TD>
    <% } %>
    <% for (int i = 100; i > percent; i -= 10) { %>
    <TD WIDTH="10%"> </TD>
    <% } %>
    </TR>
    </TABLE>
    <TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD ALIGN="CENTER">
    <% if (task.isRunning()) { %>
    Running
    <% } else { %>
    <% if (task.isCompleted()) { %>
    Completed
    <% } else if (!task.isStarted()) { %>
    Not Started
    <% } else { %>
    Stopped
    <% } %>
    <% } %>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="CENTER">
    <BR>
    <% if (task.isRunning()) { %>
    <FORM METHOD="GET" ACTION="stop.jsp">
    <INPUT TYPE="SUBMIT" VALUE="Stop">
    </FORM>
    <% } else { %>
    <FORM METHOD="GET" ACTION="start.jsp">
    <INPUT TYPE="SUBMIT" VALUE="Start">
    </FORM>
    <% } %>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>
    ////////////////////////////// stop.jsp
    <jsp:useBean id="task" scope="session"
    class="thread.TaskBean"/>
    <% task.setRunning(false); %>
    <jsp:forward page="status.jsp"/>
    deploy it into ur server and run start.jsp
    and see whatb happens

  • Using java bean with jsp

    hello friends,
    i'm new to jsp. i want to create an html form that accepts username and a value from four radio buttons and display back the entered name and checked radio button's value using java bean.
    i use the <jsp:setProperty id="" property="*"> method. i don't know how to access the radio buttons value from the html.
    also when i use an additional field other than username the jsp page is showing error.
    Please give me the correct method to use java bean with jsp in this circumstance.
    thank you.

    thank you, but i have a problem left. the case is like this.
    i got the jsp and bean worked fine when i have a sinle input text field.
    but when i added a second text field i recieved the following error.
    javax.servlet.ServletException: basket.newbean.getUserPass()Ljava/lang/String;
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.newform.process_jsp._jspService(process_jsp.java:69)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    where userPass is the new form element. I have made the subsequent chanes in my bean program and jsp file.
    pls hlp.

  • INSERT statement with JSP

              Does anyone know how to create an INSERT statement with JSP using
              variables??
              I can do the insert if I code the values of the variables in the statement,
              but when I try to use variables to do the insert it tries to insert the
              variable name and not the value of the variable into the table.
              Thanks,
              Doug
              

    "Doug Schaible" <[email protected]> wrote in message news:<bicO7.1279268$[email protected]>...
              > I can do the insert if I code the values of the variables in the statement,
              > but when I try to use variables to do the insert it tries to insert the
              > variable name and not the value of the variable into the table.
              Doug,
              I think you missed the <%= blahblah %> syntax.
              Regards
              drit
              

Maybe you are looking for