1 | <html>
|
---|
2 | <%@ page contentType="text/html; charset=utf-8"
|
---|
3 | import="java.io.InputStream,
|
---|
4 | java.io.IOException,
|
---|
5 | javax.xml.parsers.SAXParser,
|
---|
6 | java.lang.SecurityException,
|
---|
7 | java.lang.reflect.*,
|
---|
8 | javax.xml.parsers.SAXParserFactory"
|
---|
9 | session="false" %>
|
---|
10 | <%!
|
---|
11 | /* Inspired by happyaxis.jsp */
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * get the location of a class
|
---|
15 | * @param out
|
---|
16 | * @param clazz
|
---|
17 | * @return the jar file or path where a class was found
|
---|
18 | */
|
---|
19 |
|
---|
20 | String getLocation(JspWriter out,
|
---|
21 | Class clazz) {
|
---|
22 | try {
|
---|
23 | java.net.URL url = clazz.getProtectionDomain().getCodeSource().getLocation();
|
---|
24 | String location = url.toString();
|
---|
25 | if(location.startsWith("jar")) {
|
---|
26 | url = ((java.net.JarURLConnection)url.openConnection()).getJarFileURL();
|
---|
27 | location = url.toString();
|
---|
28 | }
|
---|
29 |
|
---|
30 | if(location.startsWith("file")) {
|
---|
31 | java.io.File file = new java.io.File(url.getFile());
|
---|
32 | return file.getAbsolutePath();
|
---|
33 | } else {
|
---|
34 | return url.toString();
|
---|
35 | }
|
---|
36 | } catch (Throwable t){
|
---|
37 | }
|
---|
38 | return getMessage("classFoundError");
|
---|
39 | }
|
---|
40 |
|
---|
41 | void dumpJavaProperties(JspWriter out) throws IOException {
|
---|
42 | java.util.Enumeration e=null;
|
---|
43 | try {
|
---|
44 | e = System.getProperties().propertyNames();
|
---|
45 | }
|
---|
46 | catch (SecurityException se) {
|
---|
47 | out.write("<pre>SecurityException</pre>");
|
---|
48 | se.printStackTrace();
|
---|
49 | }
|
---|
50 | if(e!=null) {
|
---|
51 | out.write("<pre>");
|
---|
52 | for (;e.hasMoreElements();) {
|
---|
53 | String key = (String) e.nextElement();
|
---|
54 | out.write(key + "=" + System.getProperty(key)+"\n");
|
---|
55 | }
|
---|
56 | out.write("</pre><p>");
|
---|
57 | } else {
|
---|
58 | out.write(getMessage("sysPropError"));
|
---|
59 | }
|
---|
60 | }
|
---|
61 | %>
|
---|
62 |
|
---|
63 | <%@ include file="i18nLib.jsp" %>
|
---|
64 |
|
---|
65 | <%
|
---|
66 | // initialize a private HttpServletRequest
|
---|
67 | setRequest(request);
|
---|
68 |
|
---|
69 | // set a resouce base
|
---|
70 | setResouceBase("i18n-gsdl");
|
---|
71 | %>
|
---|
72 |
|
---|
73 | <head>
|
---|
74 | <title><%= getMessage("pageTitle") %></title>
|
---|
75 | </head>
|
---|
76 | <body bgcolor='#ffffff'>
|
---|
77 |
|
---|
78 | <%
|
---|
79 | out.print("<h1>"+ getMessage("pageTitle") +"</h1>");
|
---|
80 | out.print("<h2>"+ getMessage("pageRole") +"</h2><p/>");
|
---|
81 | %>
|
---|
82 |
|
---|
83 | <%= getLocaleChoice() %>
|
---|
84 |
|
---|
85 |
|
---|
86 |
|
---|
87 |
|
---|
88 | <%
|
---|
89 | // dumpJavaProperties(out);
|
---|
90 |
|
---|
91 | String gsdl3_home = System.getProperty("GSDL3HOME");
|
---|
92 | out.print("GSDL3HOME = " + gsdl3_home);
|
---|
93 |
|
---|
94 | %>
|
---|
95 |
|
---|
96 | <hr />
|
---|
97 | <%= getMessage("apsPlatform") %>:
|
---|
98 | <%= getServletConfig().getServletContext().getServerInfo() %>
|
---|
99 | </body>
|
---|
100 | </html>
|
---|