title: Disabling run from BIRT Viewer programatically
body: <p>We are launching the BIRT 3.7.2 Viewer Webapp in an embedded Jetty server in our application, and for legal reasons we are <strong>not allowed to edit the war file</strong> ourselves.</p>
  
  <p>We want to disable a few options in the viewer such as server side printing and the ability to re-run a report.</p>
  
  <p>The printing was simple enough, just by using an override descriptor to override the web.xml and set the BIRT property which disables it.</p>
  
  <p>However the re-run is proving more difficult. We have several Jetty Handlers wrapping the WebApp and we first thought to attempt to filter the request containing the the re-run command, but the problem is it seems to be identical to the view request.</p>
  
  <p>When first rendering a report using the BIRT viewer three necessary requests are logged in the Jetty webserver:
  <code>/birt/frameset?__document=hello_world.rptdocument</code> - GET request
  <code>/birt/webcontent/birt/pages/common/processing.jsp?__rtl=false</code> - GET request
  <code>/birt/frameset?__document=hello_world.rptdocument&amp;__sessionId=20130710_161752_347</code> - POST request</p>
  
  <p>And when re-running:
  <code>/birt/frameset?__document=hello_world.rptdocument&amp;__sessionId=20130710_161752_347</code>- POST request</p>
  
  <p>This is making filtering the URL difficult, as the request objects seem identical, and there appears to be nothing in the logs for Jetty or the BIRT viewer that explain why it is treated differently (i.e rerunning a report as opposed to just rendering it).</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks,</p>
  
  <p>Rob</p>