[jboss-user] [JBoss Tools Users] - JBossBirtServlet and wrong reportName path?

cyrilus do-not-reply at jboss.com
Mon Nov 16 11:15:22 EST 2009


When using <p:birt we must prefix the path of a design report with /, if not we get an exception because the repot is not found...

  | <p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
  | 	xmlns:s="http://jboss.com/products/seam/taglib"
  | 	xmlns:p="http://jboss.com/products/seam/birt" 
  | 	designType="run"
  | 	format="pdf"
  | 	designName="/testencoded2.rptdesign" 
  | 	title="JBoss Birt Encoding Test">

If we don't want to prefix with the /, we have to change the code in JBossBirtServlet from this:

  | // Open report design
  | design = birtReportEngine.openReportDesign(sc.getRealPath("/")
  | + reportName);

to this one:

  | design = birtReportEngine.openReportDesign(sc.getRealPath("/"+ reportName));

Shall we consider this as a bug?


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265905#4265905

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265905

More information about the jboss-user mailing list