Configuring the Application Server

Although building Web applications in Java is meant to be independent of application servers, the J2EE standard tends to be interpreted differently for each vendors application server. Because of this, each application server has a different way of performing Web application configuration. The general rule is that there is a folder structure like this:






webApplicationFolder

 WEB-INF

 web.xml

 lib

 classes


When setting up the Java Reporting Component for a given Web application, the following steps are required:

  • Copy all the Java Reporting Component .jar files from C:Program FilesCommon FilesCrystal Decisions2.5javalib into the lib folder.

  • Copy all the third-party .jar files from C:Program FilesCommon FilesCrystal Decisions2.5javalibexternal into the lib folder.

  • Copy CrystalReportEngine-config.xml from C:Program FilesCommon FilesCrystal Decisions2.5java to the classes folder.

  • Copy the crystalreportviewer10 folder from C:Program FilesCommon FilesCrystal Decisions2.5 to the Web application folder (webApplicationFolder in the previous example).

  • Add the following entry to the web.xml file:

    
    
    
    

    
    
    
     crystal_image_uri
    
     crystalreportviewers10
    
    
    
    

There are two additional steps required if you intend to use the Crystal tag libraries:

  • Copy crystal-tags-reportviewer.tld from C:Program FilesCommon FilesCrystal Decisions2.5javalib aglib to the WEB-INF folder.

  • Add the following entry to the web.xml file:

    
    
    
    

    
     
    
     
    
     /crystal-tags-reportviewer.tld
    
    
    
     
    
     /WEB-INF/crystal-tags-reportviewer.tld
    
     
    
     
    
    






Special Edition Using Crystal Reports 10
Special Edition Using Crystal Reports 10
ISBN: 0789731134
EAN: 2147483647
Year: 2003
Pages: 341
Simiral book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net