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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.