public List<ReportBean> initDisplayOnPage() { this.lstCsses = ComponentAssistant.getInstance().initDisplayCss(rrequest); this.lstJavascripts = new UniqueArrayList<JavascriptFileBean>(); this.lstJavascripts.addAll(pagebean.getLstSystemJavascriptFiles()); String js = rrequest.getStringAttribute("JS", ""); if (!js.equals("")) { js = Tools.htmlEncode(js); List<String> lstJsTmp = Tools.parseStringToList(js, ",", false); for (String jsTmp : lstJsTmp) { if (jsTmp == null || jsTmp.trim().equals("")) continue; if (!jsTmp.trim().startsWith(Config.webroot) && !jsTmp.trim().toLowerCase().startsWith("http://")) { jsTmp = Tools.replaceAll(Config.webroot + "/" + jsTmp, "//", "/"); } this.lstJavascripts.add(new JavascriptFileBean(jsTmp, 0)); } } else if (pagebean.getLstMyJavascriptFiles() != null) { this.lstJavascripts.addAll(pagebean.getLstMyJavascriptFiles()); } return super.initDisplayOnPage(); }