• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

configuring crystal reports w/ struts

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using "crystal reports" facet in RAD 7 to add a reporting module in my existing J2EE web app. I am using Struts & iBatis frameworks in my app. It seems like a nightmare to configure crystal reports with struts. Currently, my directory structure looks like this.

Web Content->crystalreportviewers(folder containing css, html, images, js folders and crystalimagehandler.jsp)
Web Content->reports->xyz.rpt
Web Content->WEB-INF->pages->reports->xyz-viewer.jsp
Web Content->WEB-INF->crystal-tags-reportviewer.tld
src->CRConfig.xml

the real trouble is, when i use struts forward to display the viewer JSP, it doesn't display report if the JSP is under WEB-INF. i can display report if i keep my JSP outside WEB-INF, under Web Content. but i don't want to expose my JSP for obvious reasons.

any help will be greatly appreciated!

Thanks.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suggest moving your JSPs so they are under web content. Then add the following entry to your web.xml file:

This will deny direct access to your JSPs just as well as putting them in WEB-INF.
 
Jim Colwood
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i tried different patterns to distinguish between my index.jsp & viewer jsp's for crystal reports. it either blocks access to all pages or doesn't block any! any suggestions? also, can anyone provide a sample configuration of crystal reports with struts framework?
 
reply
    Bookmark Topic Watch Topic
  • New Topic