Author: igorz
Date: 2008-02-17 09:43:32 -0500 (Sun, 17 Feb 2008)
New Revision: 95972

Modified:
   trunk/mcs/class/System.Web/System.Web/HttpException.cs
Log:
TARGET_J2EE:
merge r95970:95971

Modified: trunk/mcs/class/System.Web/System.Web/HttpException.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpException.cs      2008-02-17 
14:40:55 UTC (rev 95971)
+++ trunk/mcs/class/System.Web/System.Web/HttpException.cs      2008-02-17 
14:43:32 UTC (rev 95972)
@@ -162,6 +162,23 @@
 
                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 @@
 .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\"/>",

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to