<%@ page contentType="text/html; charset=utf-8" import="java.io.InputStream, java.io.IOException, javax.xml.parsers.SAXParser, java.lang.SecurityException, java.lang.reflect.*, javax.xml.parsers.SAXParserFactory" session="false" %> <%! /* Inspired by happyaxis.jsp */ /** * get the location of a class * @param out * @param clazz * @return the jar file or path where a class was found */ String getLocation(JspWriter out, Class clazz) { try { java.net.URL url = clazz.getProtectionDomain().getCodeSource().getLocation(); String location = url.toString(); if(location.startsWith("jar")) { url = ((java.net.JarURLConnection)url.openConnection()).getJarFileURL(); location = url.toString(); } if(location.startsWith("file")) { java.io.File file = new java.io.File(url.getFile()); return file.getAbsolutePath(); } else { return url.toString(); } } catch (Throwable t){ } return getMessage("classFoundError"); } void dumpJavaProperties(JspWriter out) throws IOException { java.util.Enumeration e=null; try { e = System.getProperties().propertyNames(); } catch (SecurityException se) { out.write("
SecurityException
"); se.printStackTrace(); } if(e!=null) { out.write("
");
            for (;e.hasMoreElements();) {
                String key = (String) e.nextElement();
                out.write(key + "=" + System.getProperty(key)+"\n");
            }
            out.write("

"); } else { out.write(getMessage("sysPropError")); } } %> <%@ include file="i18nLib.jsp" %> <% // initialize a private HttpServletRequest setRequest(request); // set a resouce base setResouceBase("i18n-gsdl"); %> <%= getMessage("pageTitle") %> <% out.print("

"+ getMessage("pageTitle") +"

"); out.print("

"+ getMessage("pageRole") +"

"); %> <%= getLocaleChoice() %> <% // dumpJavaProperties(out); String gsdl3_home = System.getProperty("GSDL3HOME"); out.print("GSDL3HOME = " + gsdl3_home); %>


<%= getMessage("apsPlatform") %>: <%= getServletConfig().getServletContext().getServerInfo() %>