txt)))
.addElement(form);
if (DEBUG && data.getUser() != null)
{
TD perm = new TD().setVAlign(AlignType.TOP);
TD temp = new TD().setVAlign(AlignType.TOP);
perm.addElement("Perm values:").addElement(new BR());
for (Iterator it = data.getUser().getPermStorage().keySet().iterator();
it.hasNext();)
{
String key = (String) it.next();
String value = data.getUser().getPerm(key).toString();
perm.addElement(key + "=" + value).addElement(new BR());
}
temp.addElement("Temp values:").addElement(new BR());
for (Iterator it = data.getUser().getTempStorage().keySet().iterator();
it.hasNext();)
{
String key = (String) it.next();
String value = data.getUser().getTemp(key).toString();
temp.addElement(key + "=" + value).addElement(new BR());
}
body.addElement(new BR()).addElement(new BR()).addElement(
new Table().setBorder(2).setCellPadding(10).addElement(
new TR().addElement(perm).addElement(temp)));
}
if (DEBUG)
{
// If there are GET/POST/PATH_INFO variables put them into
// a <PRE></PRE> tag so that they can be displayed on the
// page. This is of course only for example purposes.
PRE pre = new PRE();
for (Iterator it = data.getParameters().keySet().iterator();
it.hasNext();)
{
String key = (String) it.next();
String[] values = data.getParameters().getStrings(key);
if (values.length == 1)
{
pre.addElement(key + " = " + values[0] + "\n");
}
else
{
pre.addElement(key + " = ");
for (int i = 0; i < values.length; i++)
{
pre.addElement(values[i] + " ");
}
pre.addElement("\n");
}
}
body
.addElement(new B("Query/PathInfo Parameters"))
.addElement(new BR())
.addElement(pre);
Table table2 = new Table().setBorder(0);
Map varDebug = data.getDebugVariables();
boolean hasValues2 = false;
for (Iterator i = varDebug.keySet().iterator(); i.hasNext();)
{
String key = (String) i.next();
String value = varDebug.get(key).toString();
TR tr =
new TR().addElement(
new TD().addElement(new B(key))).addElement(
new TD().addElement(" = " + value));
table2.addElement(tr);
hasValues2 = true;
}
if (hasValues2)
{