Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I call ReportMill (java report utility) - php - tomcat - java



Hi:

I would like to use ReportMill (http://www.reportmill.com/support/DevDocs.html ) from my website. The simplest solution looks like building a url like:

http://mac.domain.com:8080/reportmill?report=myreport.rpt&opt1=username&opt2=345

And have a java servlet executed by tomcat5 call the java object with the parameters specified.

i.e.:
// Load template from any Source (File, String path, InputStream, byte array, etc.)
RMDocument template = new RMDocument(aSource);


// Generate report with EJBs, POJOs, Java Collections, JDBC ResultSet, etc.
RMDocument report = template.generateReport(myJavaDataset);


// Get PDF (or HTML, Flash, Excel, XML, etc.)
byte pdf[] = report.getBytesPDF();

returning a pdf file from my template.

I have a PHP web site on one of my macintosh 10.5 systems.

Macintosh 10.5.1
Tomcat5 5.5.25 installed via MacPorts
Apache2 - default for 10.5
PHP 5.2.4 - default for 10.5

What I am looking for is an example tomcat5 java servlet that reads the url parameters from the calling url and gives me a chance to call a class in my CLASSPATH.

Thank you for any help!

Kent Behrends
BEHR Consulting
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.