Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Properties file
Properties file [message #650228] Sun, 23 January 2011 07:48 Go to next message
mary  is currently offline mary
Messages: 2
Registered: January 2011
Junior Member
Hi all,

I have create a Birt project using jsp.It works fine but I want to create a property file which contained some paths where the reports located and Tomcat paths in order to make the installation easier.


Do you have any idea or example how to call the property file?I was reading that through web.xml I can do the servlet mapping but I cannot find it.

I would appreaciate an answer



Regards,
Mary
Re: Properties file [message #650401 is a reply to message #650228] Mon, 24 January 2011 12:51 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Mary

Are you using the Viewer or are you writing your own BIRT engine servlet?

Jason

On 1/23/2011 7:49 AM, mary wrote:
> Hi all,
>
> I have create a Birt project using jsp.It works fine but I want to
> create a property file which contained some paths where the reports
> located and Tomcat paths in order to make the installation easier.
>
>
> Do you have any idea or example how to call the property file?I was
> reading that through web.xml I can do the servlet mapping but I cannot
> find it.
>
> I would appreaciate an answer
>
>
>
> Regards,
> Mary
>
Re: Properties file [message #650433 is a reply to message #650401] Mon, 24 January 2011 15:34 Go to previous messageGo to next message
mary  is currently offline mary
Messages: 2
Registered: January 2011
Junior Member
Hi,
I am using a viewer.
Re: Properties file [message #650582 is a reply to message #650433] Tue, 25 January 2011 10:45 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Mary,

The default location for the reports is set in the web.xml

<context-param>
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
<param-value>/myreports</param-value>
</context-param>

If the value is blank the reports are located at the context root. In
the above example if I specify __report=mytestreport.rptdesign in the
url it will look for the reports in the contextroot/myreports.

Jason


On 1/24/2011 3:34 PM, mary wrote:
> Hi,
> I am using a viewer.
Previous Topic:Table Height
Next Topic:SQL Text and Birt formating
Goto Forum:
  


Current Time: Sat Aug 23 15:20:39 EDT 2014

Powered by FUDForum. Page generated in 0.01751 seconds