-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.jsp
154 lines (143 loc) · 6.09 KB
/
index.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE HTML>
<html>
<head>
<title>Eclipse BIRT Home</title>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<link href="styles/iv/index.css" type=text/css rel=stylesheet>
<link href="https://eclipse-birt.github.io/birt-website/img/BIRT-Icon.ico" type=image/x-icon rel="shortcut icon">
<!--<link href="http://www.eclipse.org/images/eclipse.ico" type=image/x-icon rel="shortcut icon">-->
<style>
.warningMessage {
color: red;
}
.main_font {
font-family: Arial, sans-serif;
}
.info_group {
margin-top: 8px;
padding: 6px 8px 6px 20px;
background-color: #ddd;
color: #5c5c5c;
font-weight: bold;
}
.li {
padding: 4px;
}
.li-label {
display: inline-block;
min-width: 148px;
}
.installed_message {
border: 1px solid gray;
border-radius: 2px;
font-weight: bold;
font-size: 14pt;
color: #5c5c5c;
background-color: white;
margin: 36px 0px 36px 0px;
padding: 16px;
}
</style>
<%
String viewerVersion = "4.14.0";
String engineVersion = "4.14.0";
String javaVersion = System.getProperty("java.version");
String javaVendor = System.getProperty("java.vendor");
String javaHome = System.getProperty("java.home");
String osName = System.getProperty("os.name");
String osVersion = System.getProperty("os.version");
String osArch = System.getProperty("os.arch");
%>
<style>
</style>
</head>
<body class="main_font">
<!-- Page banner -->
<table class="main_font" style="width:100%; border:0; background-image:url('webcontent/birt/images/Breadcrumbs-large-bg.jpg'); background-size:100%; padding-left:12px;">
<tbody>
<tr>
<td width=120>
<a href="http://www.eclipse.org/">
<img src="webcontent/birt/images/EclipseBannerPic.jpg" alt="Eclipse Logo" style="margin-left:-14px; vertical-align:middle; width:120px; border:0;">
</a>
</td>
<td>
<span style="margin-left:20px; font-weight:bold; font-size:16pt; color:white;">BIRT Viewer Installation</span>
</td>
<td vAlign=center align=right width=250>
<a class="birt" href="http://www.eclipse.org/birt" target="blank">
<!-- Temporary BIRT header -->
<div style="text-align:right; padding-right:10px; font-weight:bold; font-size:20px; color:#e8e8ff;">
<img src="webcontent/birt/images/BIRT-Logo.png" alt="BIRT Logo" style="margin-right:12px; height:48px; margin-top:8px; margin-bottom:8px; background-color: white;border: 4px solid white; border-radius: 4px;">
</div>
</a>
</td>
</tr>
</tbody>
</table>
<!-- table with menu & content -->
<table class="main_font" style="padding:0px; width:100%; border:0;"> <!--cellSpacing=0 cols=2 cellPadding=0 border=0 width="100%">-->
<tbody>
<tr>
<td class="content" style="padding:10px;" >
<!-- Page title -->
<div class="installed_message"><img src="webcontent/birt/images/BIRT-Icon-large.png" alt="BIRT Logo" style="vertical-align:middle; border:0; margin-right:12px; height:48px;">BIRT viewer has been installed.</div>
<!-- Content area -->
<div style="background-color:#4682b4; color:white; padding:8px 8px 8px 16px; font-weight:bold;">Thank you for your choosing BIRT (Business Intelligence Reporting Tool).</div>
<div>
<%
String javaVersionMessage = javaVersion;
// check Java version
String[] versionParts = javaVersion.split("\\.");
int majorVersion = 0;
int minorVersion = 0;
try
{
majorVersion = Integer.parseInt(versionParts[0]);
minorVersion = Integer.parseInt(versionParts[1]);
if ( majorVersion < 1 || ( majorVersion == 1 && minorVersion < 5 ) )
{
javaVersionMessage = "<span class=\"warningMessage\">" + javaVersion + " (WARNING: BIRT " + viewerVersion + " only supports JRE versions >= 1.5)</span>";
}
}
catch (NumberFormatException e)
{
}
%>
<div class="info_group">BIRT details:</div>
<ul>
<li class="li"><span class="li-label">Viewer Version:</span><span><%= viewerVersion %></span></li>
<li class="li"><span class="li-label">Engine Version:</span><span><%= engineVersion %></span></li>
</ul>
<div class="info_group">Java environment:</div>
<ul>
<li class="li"><span class="li-label">JRE Version:</span><span><%= javaVersionMessage %></span></li>
<li class="li"><span class="li-label">JRE Vendor:</span><span><%= javaVendor %></span></li>
<li class="li"><span class="li-label">Java Home:</span><span><%= javaHome %></span></li>
<li class="li"><span class="li-label">Applicaton Server:</span><span><%= application.getServerInfo() %></span></li>
</ul>
<div class="info_group">OS details:</div>
<ul>
<li class="li"><span class="li-label">OS Name:</span><span><%= osName %></span></li>
<li class="li"><span class="li-label">OS Version:</span><span><%= osVersion %></span></li>
<li class="li"><span class="li-label">OS Architecture:</span><span><%= osArch %></span></li>
</ul>
</div>
<div style="background-color: #4682b4; height:2px;"></div>
<p>
<a href="<%= request.getContextPath( ) + "/frameset?__report=example_simple.rptdesign¶mString=my+parameter¶mInteger=2¶mList=2" %>" target="blank">
<img src="webcontent/birt/images/Link_Icon.png" alt="Link" style="margin-left:24px; margin-right:8px; vertical-align:middle; height:16px;">
<span>View Example 01: Integrated simple report</span>
</a>
<p>
<a href="<%= request.getContextPath( ) + "/frameset?__report=example_chart.rptdesign¶mCust=130" %>" target="blank">
<img src="webcontent/birt/images/Link_Icon.png" alt="Link" style="margin-left:24px; margin-right:8px; vertical-align:middle; height:16px;">
<span>View Example 02: Integrated chart report</span>
</a>
<div style="background-color: #4682b4; height:2px;"></div>
</td>
</tr>
</tbody>
</table>
</BODY>
</HTML>