Storing reports off of the filesystem [message #202976] |
Mon, 27 November 2006 06:10  |
Eclipse User |
|
|
|
I am using the web viewer quite successfully but I now want to be able to
store my reports in a database instead of the filesystem.
I have been looking through the faq's and the forums but have not really
found an answer for the future of this functionality, the closest is the
faq's which state: "we are looking into possible changes to support this".
Are there any concrete plans to implement this into the web viewer
application or is there another known workaround to achieve this? My
thought was that a simple way to allow this was to create another
parameter that contains a report URL instead of a file path, this could
make the existing viewer easier to implement in other solutions
For example: __report=myPath/myReport.rptdesign
could also be:
__reportURL=http://mydomain/myReport
The url could be a static report, a servlet that fetches it from a DB, or
even created on the fly. Is this the type of solution that is being
considered?
|
|
|
|
|
Re: Storing reports off of the filesystem [message #205126 is a reply to message #203154] |
Wed, 06 December 2006 12:01  |
Eclipse User |
|
|
|
Really interesting, but it is not clear how to do it.
Do you mean overriding the ViewerAttributeBean#getDesignHandle() method?!
Thanks, Paolo
Jason Weathersby wrote:
> Currently the viewer reads the report with the following code:
> this.reportDesignName = ParameterAccessor.getParameter(
>
> request, ParameterAccessor.PARAM_REPORT );
>
>
> InputStream is = null;
>
> URL url = null;
>
> try
>
> {
>
> String reportPath = this.reportDesignName;
>
> if ( !reportPath.startsWith( "/" ) ) //$NON-NLS-1$
>
> reportPath = "/" + reportPath; //$NON-NLS-1$
>
>
> url = request.getSession( ).getServletContext( )
>
> .getResource( reportPath );
>
> if ( url != null )
>
> is = url.openStream( );
>
>
>
> You could modify this code to use a requestDispactcher.
>
> Jason
>
> "M Koranda" <matt.koranda@edb.com> wrote in message
> news:3cc2cd97051a0e116c42a5ba8af48a2e$1@www.eclipse.org...
>> I am using the web viewer quite successfully but I now want to be able to
>> store my reports in a database instead of the filesystem.
>>
>> I have been looking through the faq's and the forums but have not really
>> found an answer for the future of this functionality, the closest is the
>> faq's which state: "we are looking into possible changes to support this".
>>
>> Are there any concrete plans to implement this into the web viewer
>> application or is there another known workaround to achieve this? My
>> thought was that a simple way to allow this was to create another
>> parameter that contains a report URL instead of a file path, this could
>> make the existing viewer easier to implement in other solutions
>>
>> For example: __report=myPath/myReport.rptdesign
>>
>> could also be:
>> __reportURL=http://mydomain/myReport
>>
>> The url could be a static report, a servlet that fetches it from a DB, or
>> even created on the fly. Is this the type of solution that is being
>> considered?
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02844 seconds