Saving the HTML output [message #259102] |
Tue, 23 October 2007 11:11  |
Eclipse User |
|
|
|
Originally posted by: KartoffelKiffer.gmx.de
Hello,
i have a little question to you.
I'm using BIRT with a MySQL database as DataSource. Everytime when i
select a report, the report will be newly generated. Is it possible to
save/export this generated HTML output as a file?
So i could ask in my application if .html (or something else) is existing,
if not -> generate. When i wanna see this report again, a HTML was
generated and only this will be displayed. Not the hole report will be
generated again.
I hope somebody can help me with my problem.
Best regards,
Tom
|
|
|
|
|
|
|
|
|
Re: Saving the HTML output [message #259600 is a reply to message #259463] |
Fri, 26 October 2007 03:37   |
Eclipse User |
|
|
|
Originally posted by: KartoffelKiffer.gmx.de
Hello,
here my web.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Eclipse BIRT Report Viewer</display-name>
<!-- Default locale setting -->
<context-param>
<param-name>BIRT_VIEWER_LOCALE</param-name>
<param-value>en-US</param-value>
</context-param>
<!-- Report resources directory for preview. Default to ${birt home} -->
<context-param>
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
<param-value></param-value>
</context-param>
<!-- The generated document files directory. Default to ${birt
home}/documents -->
<context-param>
<param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
<param-value></param-value>
</context-param>
<!-- If usr can only access the reprot resources under working folder.
Default is false -->
<context-param>
<param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
<param-value>false</param-value>
</context-param>
<!-- Output image/chart directory. Default to ${birt home}/report/images
-->
<context-param>
<param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
<param-value></param-value>
</context-param>
<!-- Engine log directory. Default to ${birt home}/logs -->
<context-param>
<param-name>BIRT_VIEWER_LOG_DIR</param-name>
<param-value></param-value>
</context-param>
<!-- Report engine log level -->
<context-param>
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
<param-value>WARNING</param-value>
</context-param>
<!-- Directory to store all birt report script libraries (JARs). Default
to ${birt home}/scriptlib -->
<context-param>
<param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
<param-value></param-value>
</context-param>
<!-- Resource location directory. Default to ${birt home} -->
<context-param>
<param-name>BIRT_RESOURCE_PATH</param-name>
<param-value></param-value>
</context-param>
<!-- Preview report max rows limited. -->
<context-param>
<param-name>BIRT_VIEWER_MAX_ROWS</param-name>
<param-value></param-value>
</context-param>
<!-- If always overwrite generated document file. For runtime,efalult to
true -->
<context-param>
<param-name>BIRT_OVERWRITE_DOCUMENT</param-name>
<param-value>false</param-value>
</context-param>
<!-- Define BIRT viewer configuration file -->
<context-param>
<param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
<param-value>WEB-INF/viewer.properties</param-value>
</context-param>
<!-- If turn on the function that supports print on the server side.
Default to on. -->
<context-param>
<param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
<param-value>OFF</param-value>
</context-param>
<!-- If force optimized HTML output. Default to true -->
<context-param>
<param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
<param-value>true</param-value>
</context-param>
<!-- Viewer Servlet Context Listener -->
<listener>
<listener-class> org.eclipse.birt.report.listener.ViewerServletContextListene r </listener-class>
</listener>
<!-- Viewer HttpSession Listener -->
<listener>
<listener-class>org.eclipse.birt.report.listener.ViewerHttpSessionListener </listener-class>
</listener>
<!-- Viewer Servlet, Support SOAP -->
<servlet>
<servlet-name>ViewerServlet</servlet-name>
<servlet-class>org.eclipse.birt.report.servlet.ViewerServlet </servlet-class>
</servlet>
<!-- Engine Serlvet -->
<servlet>
<servlet-name>EngineServlet</servlet-name>
<servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ViewerServlet</servlet-name>
<url-pattern>/frameset</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ViewerServlet</servlet-name>
<url-pattern>/run</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/preview</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/download</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/parameter</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>/birt.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/birt.tld</taglib-location>
</taglib>
<resource-env-ref>
<description>
Link to the UserDatabase instance from which we request lists of
defined role names. Typically, this will be connected to the global
user database with a ResourceLink element in server.xml or the
context
configuration file for the Manager web application.
</description>
<resource-env-ref-name>users</resource-env-ref-name>
<resource-env-ref-type>
org.apache.catalina.UserDatabase
</resource-env-ref-type>
</resource-env-ref>
<!-- Define a Security Constraint on this Application -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Report Viewer</web-resource-name>
<url-pattern>/some_folders_and_files/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>rptview</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Repoert Viewer with
ADMIN-Access</web-resource-name>
<url-pattern>/some_folders_and_files/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/login.jsp?false</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>
The role that is required to log in to the Report-Viewer Application
</description>
<role-name>rptview</role-name>
</security-role>
<security-role>
<description>
The role that is required to log in to the Report-Viewer Application
with ADMIN-Access
</description>
<role-name>admin</role-name>
</security-role>
</web-app>
The content of the reports doesn't change, but the names (look above, the
timestamps in the name). I try to use static names. Could it be, that the
report engine wouldn't find the old report design, so the rptdocument will
be newly generated?
Like i said, i will try out.
Thanks again for your help Jason.
Best regards,
Tom
|
|
|
Re: Saving the HTML output [message #260361 is a reply to message #259600] |
Fri, 02 November 2007 05:56   |
Eclipse User |
|
|
|
Originally posted by: KartoffelKiffer.gmx.de
Hello,
i'm still here, again.
I successfully tried to crack it. I don't use any timestamps and the newly
generated reports will have the same name.
But a new problem is coming: When i generate a new report (with my
modified sqls and so on) everytime a new rptdocument will be generated
(like before). The name of the report is the same, the content may be
possibly the same, but the date of creation wouldn't accord.
You said, that the content will be compared, is it possible, that the
comparison will accord the date of creation? This couldn't work, because
it will be generated everytime new.
I hope you could help me again Jason.
Best regards,
Tom
|
|
|
Re: Saving the HTML output [message #260387 is a reply to message #260361] |
Fri, 02 November 2007 10:15  |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Tom,
The comparison is between the report design and the report document time
stamps. If the report document is newer than it will not be overwritten.
Also the
<context-param>
<param-name>BIRT_OVERWRITE_DOCUMENT</param-name>
<param-value>false</param-value>
</context-param>
Must be false or it will overwrite it every time.
Jason
Tom wrote:
> Hello,
>
> i'm still here, again.
>
> I successfully tried to crack it. I don't use any timestamps and the
> newly generated reports will have the same name.
>
> But a new problem is coming: When i generate a new report (with my
> modified sqls and so on) everytime a new rptdocument will be generated
> (like before). The name of the report is the same, the content may be
> possibly the same, but the date of creation wouldn't accord.
>
> You said, that the content will be compared, is it possible, that the
> comparison will accord the date of creation? This couldn't work, because
> it will be generated everytime new.
>
> I hope you could help me again Jason.
>
>
>
>
> Best regards,
> Tom
>
|
|
|
Powered by
FUDForum. Page generated in 0.04784 seconds