[BIRT]web中向Birt报表传参数
原来用URL方式向Birt进行参数传递,发现二个问题
1.需要用urldecode进行二次处理,麻烦;
2.参数长度有限制,恶心。遇到长一点参数就没有办法了;
?
后来就考虑在script中通过session 参数进行传递
String contextKey = "whereClause";request.getSession().setAttribute("AppContextKey", contextKey);request.getSession().setAttribute("AppContextValue", sql);?在report中用
beforeOpen中取出即可