Posted on 2015-08-04 10:28
FineReport——報表技術領跑者 閱讀(275)
評論(0) 編輯 收藏
用FineRepor搭建的數據決策系統,系統自動生成的地址一般都比較長,比如原來的登陸地址:http://196.128.1.2/WebReport/ReportServer?op=fs,地址太長不易記憶,這就產生了一個問題:如何實現直接在在瀏覽器輸http://196.128.1.2就能訪問數據決策系統?
對于這個問題,一般有兩個解決思路:
一、設置跳轉
在FineReport服務器的初始加載頁面進行跳轉,這個方法技術上比較容易實現,具體實現方法也多樣,就不贅述了。
二、iframe嵌入
修改 tomcat\conf下的web。xml 設置加載的引導頁 <welcome-file>index.jsp</welcome-file>
把root目錄下
index。jsp里的代碼修改為以下,
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>數據決策系統</title>
</head>
<body>
<iframe id="reportFrame" src="/WebReport/ReportServer?op=fs"
name="itemslist" frameborder="0" width=100% height="100%"></iframe>
</body>
</html>