%@ page language="java" contentType="text/html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@page import="javax.naming.Context"%>
<%@page import="javax.naming.InitialContext"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.io.ByteArrayOutputStream"%>
<%@page import="java.io.ByteArrayInputStream"%>
JNDI explorer: View Factory settings
Lookup
Class: | ${obj.class.name} |
JNDI explorer: View Factory settings
Please enter InitialContext properties in the standard property format: 1 per line, name then value separated by blank, colon or equal.
<% String propText = request.getParameter("properties"); final String propsEncoding = "ISO-8859-1"; if (propText == null || propText.length() == 0) { ByteArrayOutputStream writer = new ByteArrayOutputStream(); jndiProperties.store(writer, null); propText = writer.toString(propsEncoding); } else { ByteArrayInputStream reader = new ByteArrayInputStream( propText.getBytes(propsEncoding)); jndiProperties.clear(); jndiProperties.load(reader); } pageContext.setAttribute("propertiesText", propText); %>Exception ${error.class.name}: ${error.message}
at ${frame}
Caused by ${cause.class.name}: ${cause.message}
at ${frame}