Crystal servlet to .rpt file connection

Dear experts

I am brand new to Crystal reports.
I have a jsp page with two date fields, "fromdate" and "todate" and a button called "show report". when the user clicks on the show report button i am going to the Action class from action class i am forwarding the control to a servlet .

Now i want this servlet to pass the parametres such as

          String databasename = ReportConstants.DATA_BASE;
          String databasepwd = ReportConstants.DATA_BASE_PWD;
           String crystalip = ReportConstants.CRYSTAL_IP;
           String crystalfolder = ReportConstants.CRYSTAL_FOLDER;
           String crystalprotocol = ReportConstants.CRYSTAL_PROTOCOL;

and using the above parametres ,i want to "connect to the .rpt file" to display the report. But i am stuck with what needs to be done in the servlet TO CONNECT TO THE .rpt file.
Any ideas on how i can connect the above parametres in the servlet to the rpt file.
Anyhelp greatly appreciated

thanks
J
 
LVL 10
jaggernatAsked:
Who is Participating?
 
frodomanCommented:
You can probably find some stuff at the link above but a simple example to get you started can be found here: http://support.businessobjects.com/library/kbase/articles/c2011827.asp

Also, what version and edition of Crystal are you using because they don't all support java integration.  Typically you need to have either the Advanced or Developer edition.  A feature comparison can be found here: http://support.businessobjects.com/communityCS/TechnicalPapers/cr10_feat_ver_ed.pdf

frodoman
0
 
tbojoeCommented:
I believe there is a great example of passing database connection information with Java at http://www.businessobjects.com/products/dev_zone/ This is version dependent so browse around those sites. Great examples for programming with Java.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.