in tapestry-framework/src/org/apache/tapestry/request/RequestContext.java [986:1051]
private void writeSystemProperties(IMarkupWriter writer)
{
Properties properties = null;
object(writer, "JVM System Properties");
try
{
properties = System.getProperties();
}
catch (SecurityException se)
{
writer.print("<p>");
writer.print(se.toString());
return;
}
String pathSeparator = System.getProperty("path.separator", ";");
writer.begin("table");
writer.attribute("class", "request-context-object");
List names = new ArrayList(properties.keySet());
Collections.sort(names);
int count = names.size();
for (int i = 0; i < count; i++)
{
if (i == 0)
header(writer, "Name", "Value");
String name = (String) names.get(i);
String property = properties.getProperty(name);
if (property != null && property.indexOf(pathSeparator) > 0 && name.endsWith(".path"))
{
writer.begin("tr");
writer.attribute("class", getRowClass());
writer.begin("th");
writer.print(name);
writer.end();
writer.begin("td");
writer.begin("ul");
StringTokenizer tokenizer = new StringTokenizer(property, pathSeparator);
while (tokenizer.hasMoreTokens())
{
writer.beginEmpty("li");
writer.print(tokenizer.nextToken());
}
writer.end("tr");
}
else
{
pair(writer, name, property);
}
}
writer.end(); // System Properties
}