示例#1
0
 public int doEndTag() throws JspException {
   try {
     int flag = doMyEndTag();
     rrequest.getWResponse().setJspout(null);
     return flag;
   } catch (Exception e) {
     log.error("显示页面" + rrequest.getPagebean().getId() + "失败", e);
     rrequest.getWResponse().getMessageCollector().error("显示页面失败", null, true);
     return EVAL_PAGE;
   }
 }
示例#2
0
 public int doStartTag() throws JspException {
   initTagState();
   request = (HttpServletRequest) pageContext.getRequest();
   out = pageContext.getOut();
   rrequest = (ReportRequest) request.getAttribute("WX_REPORTREQUEST");
   this.ownerComponentObj = (AbsReportType) request.getAttribute("WX_COMPONENT_OBJ");
   rrequest.getWResponse().setJspout(this.out);
   if (isRootTag()) {
     if (rrequest == null) throw new JspException("没有取到ReportRequest对象,无法显示报表");
     if (this.ownerComponentObj == null) throw new JspException("没有取到组件对象,无法显示组件");
   }
   initDisplayComponentObj();
   try {
     return doMyStartTag();
   } catch (Exception e) {
     log.error("显示页面" + rrequest.getPagebean().getId() + "失败", e);
     rrequest.getWResponse().getMessageCollector().error("显示页面失败", null, true);
     return SKIP_BODY;
   }
 }
示例#3
0
 protected void println(String content) {
   rrequest.getWResponse().println(content);
 }