tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Schalk Neethling <sch...@volume4.com>
Subject Re: Web standards in Tomcat webapps
Date Thu, 12 May 2005 18:11:15 GMT
Richard

If it is decided to move forward with this, I would also be willing to 
chip in and help the conversion to XHTML + CSS.

Beton, Richard wrote:

>Hi all,
>
>
>I'm new to this list - forgive me for bargeing in (if I am).
>
>
>I'd like to see the webapps distributed with Tomcat upgraded to use web 
>
>standards. I couldn't find any mention of this in bugzilla.
>
>
>* Is this a Good Thing?  (...I think it is)
>
>
>* Is anyone already doing it?
>
>
>* I've attached a first stab at one of the jsp pages: the ROOT/index.jsp 
>page.  It uses basic CSS but I don't think I used any CSS2 features that 
>might be less backward-compatible.
>
>
>* I may have spare lunchtimes etc when I might slowly work my way 
>
>through other pages ... if there is enough interest in getting this done.
>
>
>Rick
>
>
>
>
>
>cvs -z3 -q diff -u index.jsp (in directory 
>
>C:\rdb\sw\apache\jakarta-tomcat-catalina\webapps\ROOT)
>
>Index: index.jsp
>
>===================================================================
>
>RCS file: /home/cvspublic/jakarta-tomcat-catalina/webapps/ROOT/index.jsp,v
>
>retrieving revision 1.17
>
>diff -u -r1.17 index.jsp
>
>--- index.jsp    15 Jan 2005 18:18:31 -0000    1.17
>
>+++ index.jsp    12 May 2005 16:10:42 -0000
>
>@@ -1,157 +1,173 @@
>
>-<!doctype html public "-//w3c//dtd html 4.0 transitional//en" 
>
>"http://www.w3.org/TR/REC-html40/strict.dtd">
>
>+<?xml version="1.0" encoding="ISO-8859-1"?>
>
>+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>
>+   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
> <%@ page session="false" %>
>
>-<html>
>
>+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
>
>     <head>
>
>-    <meta http-equiv="Content-Type" content="text/html; 
>
>charset=iso-8859-1">
>
>     <title><%= application.getServerInfo() %></title>
>
>     <style type="text/css">
>
>-      <!--
>
>+      /*<![CDATA[*/
>
>         body {
>
>             color: #000000;
>
>             background-color: #FFFFFF;
>
>-            font-family: Arial, "Times New Roman", Times;
>
>-            font-size: 16px;
>
>+            font-family: Arial, "Times New Roman", Times, serif;
>
>+            margin: 10px 0px;
>
>         }
>
> 
>
>-        A:link {
>
>-            color: blue
>
>+        img {
>
>+            border: none;
>
>         }
>
> 
>
>-        A:visited {
>
>-            color: blue
>
>+        a:link, a:visited {
>
>+            color: blue;
>
>+        }
>
>+
>
>+        th {
>
>+            font-family: Verdana, "Times New Roman", Times, serif;
>
>+            font-size: 110%;
>
>+            font-weight: normal;
>
>+            font-style: italic;
>
>+            background: #D2A41C;
>
>+            text-align: left;
>
>         }
>
> 
>
>         td {
>
>             color: #000000;
>
>-            font-family: Arial, "Times New Roman", Times;
>
>-            font-size: 16px;
>
>+            font-family: Arial, Helvetica, sans-serif;
>
>+        }
>
>+
>
>+        td.menu {
>
>+            background: #FFDC75;
>
>+        }
>
>+
>
>+        .center {
>
>+            text-align: center;
>
>         }
>
> 
>
>         .code {
>
>             color: #000000;
>
>-            font-family: "Courier New", Courier;
>
>-            font-size: 16px;
>
>+            font-family: "Courier New", Courier, monospace;
>
>+            font-size: 110%;
>
>+            margin-left: 2.5em;
>
>+        }
>
>+
>
>+        #banner {
>
>+            margin-bottom: 12px;
>
>+        }
>
>+
>
>+        p#congrats {
>
>+            margin-top: 0;
>
>+            font-weight: bold;
>
>+            text-align: center;
>
>+        }
>
>+
>
>+        p#footer {
>
>+            text-align: right;
>
>+            font-size: 80%;
>
>         }
>
>-      -->
>
>+      /*]]>*/
>
>     </style>
>
> </head>
>
> 
>
> <body>
>
> 
>
> <!-- Header -->
>
>-<table width="100%">
>
>+<table id="banner" width="100%">
>
>     <tr>
>
>-        <td align="left" width="130"><a 
>
>href="http://jakarta.apache.org/tomcat/index.html"><img src="tomcat.gif" 
>
>height="92" width="130" border="0" alt="The Mighty Tomcat - MEOW!"></td>
>
>-        <td align="left" valign="top">
>
>-            <table>
>
>-                <tr><td align="left" valign="top"><b><%= 
>
>application.getServerInfo() %></b></td></tr>
>
>-            </table>
>
>-        </td>
>
>-        <td align="right"><a href="http://jakarta.apache.org/"><img 
>src="jakarta-banner.gif" height="48" width="505" border="0" alt="The 
>
>Jakarta Project"></a></td>
>
>+        <td align="left" style="width:130px"><a 
>
>href="http://jakarta.apache.org/tomcat/index.html"><img src="tomcat.gif" 
>
>height="92" width="130"
>
>+        alt="The Mighty Tomcat - MEOW!"/></a></td>
>
>+        <td align="left" valign="top"><b><%= 
>
>application.getServerInfo() %></b></td>
>
>+        <td align="right"><a href="http://jakarta.apache.org/"><img 
>src="jakarta-banner.gif" height="48" width="505" alt="The Jakarta 
>
>Project"/></a></td>
>
>     </tr>
>
> </table>
>
> 
>
>-<br>
>
>-
>
> <table>
>
>     <tr>
>
> 
>
>         <!-- Table of Contents -->
>
>         <td valign="top">
>
>-            <table width="100%" border="1" cellspacing="0" 
>
>cellpadding="3" bordercolor="#000000">
>
>+            <table width="100%" border="1" cellspacing="0" cellpadding="3">
>
>                 <tr>
>
>-                    <td bgcolor="#D2A41C" bordercolor="#000000" 
>
>align="left" nowrap>
>
>-                        <font face="Verdana" 
>
>size="+1"><i>Administration</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
>
>-                    </td>
>
>+                    <th>Administration</th>
>
>                 </tr>
>
>                 <tr>
>
>-                    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
>
>-                        <a href="manager/status">Status</a><br>
>
>-                        <a href="admin">Tomcat Administration</a><br>
>
>-                        <a href="manager/html">Tomcat Manager</a><br>
>
>+                    <td class="menu">
>
>+                        <a href="manager/status">Status</a><br/>
>
>+                        <a href="admin">Tomcat&nbsp;Administration</a><br/>
>
>+                        <a href="manager/html">Tomcat&nbsp;Manager</a><br/>
>
>                         &nbsp;
>
>                     </td>
>
>                 </tr>
>
>             </table>
>
>-            <br>
>
>-            <table width="100%" border="1" cellspacing="0" 
>
>cellpadding="3" bordercolor="#000000">
>
>+            <br/>
>
>+            <table width="100%" border="1" cellspacing="0" cellpadding="3">
>
>                 <tr>
>
>-                    <td bgcolor="#D2A41C" bordercolor="#000000" 
>
>align="left" nowrap>
>
>-                        <font face="Verdana" 
>
>size="+1"><i>Documentation</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
>
>-                    </td>
>
>+                    <th>Documentation</th>
>
>                 </tr>
>
>                 <tr>
>
>-                    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
>
>-                        <a href="RELEASE-NOTES.txt">Release Notes</a><br>
>
>-                        <a href="tomcat-docs/changelog.html">Change 
>
>Log</a><br>
>
>-                        <a href="tomcat-docs">Tomcat Documentation</a><br>
>
>+                    <td class="menu">
>
>+                        <a 
>
>href="RELEASE-NOTES.txt">Release&nbsp;Notes</a><br/>
>
>+                        <a 
>
>href="tomcat-docs/changelog.html">Change&nbsp;Log</a><br/>
>
>+                        <a 
>
>href="tomcat-docs">Tomcat&nbsp;Documentation</a><br/>
>
>                         &nbsp;
>
>                     </td>
>
>                 </tr>
>
>             </table>
>
>-            <br>
>
>-            <table width="100%" border="1" cellspacing="0" 
>
>cellpadding="3" bordercolor="#000000">
>
>+            <br/>
>
>+            <table width="100%" border="1" cellspacing="0" cellpadding="3">
>
>                 <tr>
>
>-                    <td bgcolor="#D2A41C" bordercolor="#000000" 
>
>align="left" nowrap>
>
>-                        <font face="Verdana" size="+1"><i>Tomcat 
>
>Online</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
>
>-                    </td>
>
>+                    <th>Tomcat Online</th>
>
>                 </tr>
>
>                 <tr>
>
>-                    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
>
>-                        <a 
>
>href="http://jakarta.apache.org/tomcat/">Home Page</a><br>
>
>-                        <a 
>
>href="http://jakarta.apache.org/tomcat/bugreport.html">Bug Database</a><br>
>
>-                        <a 
>
>href="http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;bug_status=RESOLVED&amp;resolution=LATER&amp;resolution=REMIND&amp;resolution=---&amp;bugidtype=include&amp;product=Tomcat+5&amp;cmdtype=doit&amp;order=Importance">Open

>
>Bugs</a><br>
>
>-                        <a 
>
>href="http://nagoya.apache.org/eyebrowse/SummarizeList?listId=88">Users 
>
>Mailing List</a><br>
>
>-                        <a 
>
>href="http://nagoya.apache.org/eyebrowse/SummarizeList?listId=46">Developers 
>
>Mailing List</a><br>
>
>-                        <a 
>
>href="irc://irc.freenode.net/#tomcat">IRC</a><br>
>
>+                    <td class="menu">
>
>+                        <a 
>
>href="http://jakarta.apache.org/tomcat/">Home&nbsp;Page</a><br/>
>
>+                        <a 
>
>href="http://jakarta.apache.org/tomcat/bugreport.html">Bug&nbsp;Database</a><br/>
>
>+                        <a 
>
>href="http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;bug_status=RESOLVED&amp;resolution=LATER&amp;resolution=REMIND&amp;resolution=---&amp;bugidtype=include&amp;product=Tomcat+5&amp;cmdtype=doit&amp;order=Importance">Open

>
>Bugs</a><br/>
>
>+                        <a 
>
>href="http://nagoya.apache.org/eyebrowse/SummarizeList?listId=88">Users&nbsp;Mailing&nbsp;List</a><br/>
>
>+                        <a 
>
>href="http://nagoya.apache.org/eyebrowse/SummarizeList?listId=46">Developers&nbsp;Mailing&nbsp;List</a><br/>
>
>+                        <a 
>
>href="irc://irc.freenode.net/#tomcat">IRC</a><br/>
>
>                         &nbsp;
>
>                     </td>
>
>                 </tr>
>
>             </table>
>
>-            <br>
>
>-            <table width="100%" border="1" cellspacing="0" 
>
>cellpadding="3" bordercolor="#000000">
>
>+            <br/>
>
>+            <table width="100%" border="1" cellspacing="0" cellpadding="3">
>
>                 <tr>
>
>-                    <td bgcolor="#D2A41C" bordercolor="#000000" 
>
>align="left" nowrap>
>
>-                        <font face="Verdana" 
>
>size="+1"><i>Examples</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
>
>-                    </td>
>
>+                    <th>Examples</th>
>
>                 </tr>
>
>                 <tr>
>
>-                    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
>
>-                        <a href="jsp-examples/">JSP Examples</a><br>
>
>-                        <a href="servlets-examples/">Servlet 
>
>Examples</a><br>
>
>-                        <a href="webdav/">WebDAV capabilities</a><br>
>
>+                    <td class="menu">
>
>+                        <a href="jsp-examples/">JSP&nbsp;Examples</a><br/>
>
>+                        <a 
>
>href="servlets-examples/">Servlet&nbsp;Examples</a><br/>
>
>+                        <a href="webdav/">WebDAV&nbsp;capabilities</a><br/>
>
>                         &nbsp;
>
>                     </td>
>
>                 </tr>
>
>             </table>
>
>-            <br>
>
>-            <table width="100%" border="1" cellspacing="0" 
>
>cellpadding="3" bordercolor="#000000">
>
>+            <br/>
>
>+            <table width="100%" border="1" cellspacing="0" cellpadding="3">
>
>                 <tr>
>
>-                    <td bgcolor="#D2A41C" bordercolor="#000000" 
>
>align="left" nowrap>
>
>-                        <font face="Verdana" 
>
>size="+1"><i>Miscellaneous</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
>
>-                    </td>
>
>+                    <th>Miscellaneous</th>
>
>                 </tr>
>
>                 <tr>
>
>-                    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
>
>-                        <a 
>
>href="http://java.sun.com/products/jsp">Sun's Java Server Pages Site</a><br>
>
>-                        <a 
>
>href="http://java.sun.com/products/servlet">Sun's Servlet Site</a><br>
>
>+                    <td class="menu">
>
>+                        <a 
>
>href="http://java.sun.com/products/jsp">Sun's&nbsp;Java&nbsp;Server&nbsp;Pages&nbsp;Site</a><br/>
>
>+                        <a 
>
>href="http://java.sun.com/products/servlet">Sun's&nbsp;Servlet&nbsp;Site</a><br/>
>
>                         &nbsp;
>
>                     </td>
>
>                 </tr>
>
>             </table>
>
>         </td>
>
> 
>
>-        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
>
>+        <td style="width:20px">&nbsp;</td>
>
> 
>
>         <!-- Body -->
>
>         <td align="left" valign="top">
>
>-            <p><center><b>If you're seeing this page via a web browser,

>it means you've setup Tomcat successfully. Congratulations!</b></center></p>
>
>+            <p id="congrats">If you're seeing this page via a web 
>
>browser, it means you've setup Tomcat successfully. Congratulations!</p>
>
> 
>
>             <p>As you may have guessed by now, this is the default 
>
>Tomcat home page. It can be found on the local filesystem at:
>
>-            <blockquote>
>
>-                <p class="code">$CATALINA_HOME/webapps/ROOT/index.jsp</p>
>
>-            </blockquote>
>
>             </p>
>
>+            <p class="code">$CATALINA_HOME/webapps/ROOT/index.jsp</p>
>
> 
>
>             <p>where "$CATALINA_HOME" is the root of the Tomcat 
>
>installation directory. If you're seeing this page, and you don't think 
>
>you should be, then either you're either a user who has arrived at new 
>
>installation of Tomcat, or you're an administrator who hasn't got 
>
>his/her setup quite right. Providing the latter is the case, please 
>
>refer to the <a href="tomcat-docs">Tomcat Documentation</a> for more 
>
>detailed setup and administration information than is found in the 
>
>INSTALL file.</p>
>
> 
>
>@@ -176,13 +192,11 @@
>
> 
>
>             <p>Thanks for using Tomcat!</p>
>
> 
>
>-            <p align="right"><font size=-1><img src="tomcat-power.gif"

>
>width="77" height="80"></font><br>
>
>+            <p id="footer"><img src="tomcat-power.gif" width="77" 
>height="80" alt="Powered by Tomcat"/><br/>
>
>             &nbsp;
>
>-            <font size=-1>Copyright &copy; 1999-2004 Apache Software 
>
>Foundation</font><br>
>
>-            <font size=-1>All Rights Reserved</font> <br>
>
>-            &nbsp;</p>
>
>-            <p align="right">&nbsp;</p>
>
>-
>
>+            Copyright &copy; 1999-2004 Apache Software Foundation<br/>
>
>+            All Rights Reserved
>
>+            </p>
>
>         </td>
>
> 
>
>     </tr>
>
>
>***** CVS exited normally with code 1 *****
>
>
>
>
>
>
>
>
>
>  
>

-- 
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
emotionalize.conceptualize.visualize.realize
Landlines
Tel: +27125468436
Fax: +27125468436
Web
email:schalk@volume4.com
Global: www.volume4.com
Messenger
Yahoo!: v_olume4
AOL: v0lume4
MSN: volume4_@hotmail.com

We support OpenSource
Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/
 
This message contains information that is considered to be sensitive or confidential and may
not be forwarded or disclosed to any other party without the permission of the sender. If
you received this message in error, please notify me immediately so that I can correct and
delete the original email. Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message