Home
Analytics
Changing url-pattern for BIRT web viewer?
tdjb303
I posted this message earlier but it's gone, if I broke a rule or something please let me know, I thought everything was ok but I could be wrong.
Anyways, on to the question. I would like to use the BIRT viewer (WebViewerExample) inside an existing web application that I am deploying on Tomcat. I copied everything into my existing webapp and everything works find using the default url-pattern's (/run, /frameset, etc). My question is: how can I change these url-pattern's? I tried setting them to what I want in my web.xml file (/ReportViewer/run, /ReportViewer/frameset, etc) but that doesn't work 100%. I don't get any errors doing it this way but my reports are never generated, I just get a blank page. When I access these url pattern's without any parameters I get the usual error about no report object being passed so I know the initial mapping is working, is there something I'm missing? Is something hardcoded to use only the root directory? I've played around with setting the default resource directory and all of that but nothing has worked.
Any suggestions would be appreciated.
Find more posts tagged with
Comments
JasonW
Currently in the viewer source thouse values are hard coded. If you look in the viewer/lib directory you will find viewservlets.jar. In this jar there is the following interface
org.eclipse.birt.report.IBirtConstants
That defines these values.
Jason
tdjb303
<blockquote class='ipsBlockquote' data-author="JasonW"><p>Currently in the viewer source thouse values are hard coded. If you look in the viewer/lib directory you will find viewservlets.jar. In this jar there is the following interface<br />
org.eclipse.birt.report.IBirtConstants<br />
<br />
That defines these values.<br />
<br />
Jason</p></blockquote>
<br />
Jason, thanks for the heads up, that was it and everything is working fine now.