Re: Redirecting to a PDF file
David R Robison <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks, that did the trick David Quoting Jacob Kjome <[email protected]>: > Hello David, > > This is actually not a Barracuda issue. If you read the servlet spec, > you will find that the contents of WEB-INF are directly publicly > viewable. You would need to either redirect to a servlet which serves > up the generated file stored under WEB-INF or you need to store the > generated file outside of WEB-INF. The latter would make it directly > viewable from the web. > > For instance, instead of what you have, do a redirect to > "/report/Report.pdf" where the "report" directory is at the same level > as WEB-INF... > > / (root of WAR structure) > /report (directory viewable directly from the web) > /WEB-INF (defined by the servlet spec to *not* be publicly viewable) > > > Jake > > Tuesday, February 18, 2003, 9:41:31 AM, you wrote: > > DRR> I am trying to integrate Jasper Reports into my barracuda > application. I have it > DRR> so that when the user issues the GetReport.event, the file > Report.pdf is > DRR> generated. I then want to redirect to that file so that it will be > displayed in > DRR> the web browser. I do a > ClientSideRedirect("WEB-INF/report/Report.pdf");. In the > DRR> web browser I get a 404 error with no detail. Is there something > else I need to > DRR> do to get content back from a barracuda application without having > to envoke > DRR> another event? > > DRR> David Robison > DRR> _______________________________________________ > DRR> Barracuda mailing list > DRR> [email protected] > DRR> http://barracudamvc.org/lists/listinfo/barracuda > > > > -- > Best regards, > Jacob mailto:[email protected] > > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda >