|
|
@@ -162,6 +162,23 @@ namespace System.Web
|
|
|
|
|
|
void WriteFileTop (StringBuilder builder, string title)
|
|
|
{
|
|
|
+#if TARGET_J2EE
|
|
|
+ builder.AppendFormat ("<html><head><title>{0}</title><style type=\"text/css\">", title);
|
|
|
+ builder.AppendFormat (
|
|
|
+ @"body {{font-family:{0};font-weight:normal;font-size: 9pt;color:black;background-color: white}}
|
|
|
+p {{font-family:{0};font-weight:normal;color:black;margin-top: -5px}}
|
|
|
+b {{font-family:{0};font-weight:bold;color:black;margin-top: -5px}}
|
|
|
+h1 {{ font-family:{0};font-weight:normal;font-size:18pt;color:red }}
|
|
|
+h2 {{ font-family:{0};font-weight:normal;font-size:14pt;color:maroon }}
|
|
|
+pre {{font-family:""Lucida Console"",""DejaVu Sans Mono"",monospace;font-size: 10pt}}
|
|
|
+div.bodyText {{font-family: {0}}}
|
|
|
+table.sampleCode {{width: 100%; background-color: #ffffcc; }}
|
|
|
+.errorText {{color: red; font-weight: bold}}
|
|
|
+.marker {{font-weight: bold; color: black;text-decoration: none;}}
|
|
|
+.version {{color: gray;}}
|
|
|
+.error {{margin-bottom: 10px;}}
|
|
|
+.expandable {{ text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }}", errorStyleFonts);
|
|
|
+#else
|
|
|
builder.Append ("<?xml version=\"1.0\" ?>\n");
|
|
|
builder.Append ("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
|
|
|
builder.AppendFormat ("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><head><title>{0}</title><style type=\"text/css\">", title);
|
|
|
@@ -179,6 +196,7 @@ table.sampleCode {{width: 100%; background-color: #ffffcc; }}
|
|
|
.version {{color: gray;}}
|
|
|
.error {{margin-bottom: 10px;}}
|
|
|
.expandable {{ text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }}", errorStyleFonts);
|
|
|
+#endif
|
|
|
|
|
|
builder.AppendFormat (
|
|
|
"</style></head><body><h1>Server Error in '{0}' Application</h1><hr style=\"color: silver\"/>",
|