Archive content from 2000 to 2010

WestNIC provides reliable web hosting services

Fastwebhost offers cheap web hosting & reseller hosting services

Site navigation below

This page is part of a searchable archive of the Code Style site log. Technical implementation notes that shed light on when, why and how the site has evolved since 2000.

RSS news feed Follow the latest entries to the site log.

Reverse chronology

28th April 2003

The private entry page for the Atomz site search indexing spider does not affect the priority of the pages that are indexed; the spider appears to index the first page and follow all links from it so that lower priority pages are still included in the trawl. Excluded the path for the ParseRDF servlet and all low priority site index and contents pages from the Atomz indexing spider, Atomz/1.0, in the site robots.txt file.

Corrected a bad link on the site map include file.

Actions: Ask a question about this post, seek clarification or offer a correction.

27th April 2003

Promoted the subject keyword option on the advanced search form, and moved the date selector section up the page, with reference to the new subject vocabulary.

Created a metadata include file for the site statistics page, and added a new term, "Web site statistics", to the subject vocabulary and changed to a plural entry for "Servlet containers". Also wrote some tips on using subject terms with the site search engine and updated the site search help questions to link to them.

Created a site map via a server side include that is also used on a simple entry point page for the site search indexing spider. Created links to the map from various pages, including the section contents "At a glance" boxout menu.

Excluded the path for the AnchorPoints servlet from search engine indexing spiders in the site robots.txt file.

Reviewed several pages in the CSS media monitor subsection and made minor changes in various places; the media dependent style sheet glossary, media dependent style sheet FAQ and CSS media monitor contents.

Renamed the server side include for the footer of the custom error pages to just footer-XHTMLBasic.htm and updated all pages accordingly.

Actions: Ask a question about this post, seek clarification or offer a correction.

26th April 2003

Updated the metadata keyword include files throughout the site to duplicate the Code Style subject vocabulary terms in the general purpose keywords field to enable subject keyword queries for the Site Search. Added Anchor Points and FAQ keyword include files to all relevant sectional documents to supplement the primary terms.

Added the Mac Safari browser version 67 to the validation script for the Mac font sampler and survey. Also added the Linux Galeon 0.12.2 and Konqueror 2.1.2 to the Unix family font sampler and survey.

Added XSSI commands to the subsection navigation menu to present different book recommendations for each day of the week, currently synchronized with the section level navigation menu.

Removed Outlook MS from the Code Style Font sampler and survey (it does not have a full Latin character set), and updated all survey results.

Actions: Ask a question about this post, seek clarification or offer a correction.

22nd April 2003

Added XSSI links to the generic local navigation boxout to present different book recommendations for each day of the week.

Actions: Ask a question about this post, seek clarification or offer a correction.

21st April 2003

Completed the abstract ParseServlet class, a generic implementation of a JAXP-based XSLT processor. Concrete subclasses for particular content types, XML source and stylesheet combinations, such as ParseRDF, can be configured with minimal overrides.

Completed the concrete TrustedHttpBroker for acquiring JAXP Source objects from "local" HTTP sources.

Cleared final checks on the ResourceResolver class, which implements the JAXP EntityResolver interface.

Wrote a set of JUnit test suites for new classes and cleared corrections:

Also wrote a minimal, well formed but invalid XHTML test case document for the ParseHandler class to check validation controls and error handling.

Trimmed all section include files to reduce metadata subject fields to Code Style vocabulary terms only, to classify the content more rigorously. ParseRDF servlet testing identified incomplete ampersand entity references for correction in Servlets in action, FAQ: Javascript & DOM and Golden rules for Javascript articles.

Added an explicit SAX driver reference to the Ant build file system properties for unit testing.

Completed a full deployment of the Code Style 0.2 Java project on the production host. The ratio of test cases to classes is 30:58, with a total of 271 individual tests.

Actions: Ask a question about this post, seek clarification or offer a correction.

20th April 2003

Created a new HttpContentRequest class, equivalent to HttpRequest, using java.net.URLConnection that only acquires the content part of the HTTP response. Added constructor validation to HttpRequest to throw an exception if arguments are null.

Completed the new SourceBrokerFactory for instantiating SourceBroker types; this version only implements TrustedHttpBroker objects.

Wrote a new SourceType class to handle the XSLT output type and HTTP content type of JAXP Source objects. Includes a getClone method to copy configured instances as required.

Added constructor validation to the ErrorHandler class to ensure valid arguments.

Wrote a set of JUnit test suites for a number of new classes and cleared corrections:

Added a test.network target to the Ant build file for tests that require a running server (suffixed *NetworkTest.class).

Actions: Ask a question about this post, seek clarification or offer a correction.

19th April 2003

Transferred most of the body of the ParseRDF servlet to the abstract ParseServlet and subclassed this to leave only minimal overrides in ParseRDF. Created a minimal MockParseServlet for unit testing and a test suite for the new SourceBrokerFactory class for obtaining SourceBroker instances.

Struck some confusing classloader errors developing unit test cases for the various new JAXP classes, which took several hours to identify and isolate. Ultimately removed everything except the current directory from the system classpath, removed all JAXP packages from the Ant build file's classpath references for compilation and testing and passed them into org.apache.tools.ant.Main directly as a classpath argument.

Added a ParseRDF XSLT reference to the Ant local.properties file for unit testing purposes.

Added ParseRDF servlet links to the site-wide metadata include file and general purpose page footer offline for testing. Corrected an incomplete ampersand entity reference in the head of the Javascript & DOM section.

Actions: Ask a question about this post, seek clarification or offer a correction.

18th April 2003

Renamed the JAXP TransformationHandler to ParseHandler for brevity. Refactored various components between ParseRDF and TrustedHttpSource and introduced a private boolean isValidType method for XSLT output type arguments. (Later migrated this method to a static isValidOutput method in SourceType).

Created a new abstract SourceBroker class for obtaining JAXP Source objects, and a generic SourceException class based on DataException in Java and XSLT by Eric Burke.

Also created an ErrorHandler class that generates a custom error 500 page for specific Java exceptions. If the exception is an instance of a WrappedException containing a SAXParseException, the error report includes the line and column of the first validation error.

Created a private newErrorTemplate method for the TemplateFactory class to reduce redundancy in the getTemplate method. Applied the ServletUtilities.filter method to the XhtmlTemplate getErrorReport method to escape markup when reporting SAXParseExceptions, for instance.

Created new getInputStreamReader and getInputStream methods for the HttpRequest class, with private configureSocket and requestSource methods, and removed the redundant cleanUp() method.

Trimmed down the site-wide include file to reduce metadata subject fields to Code Style vocabulary terms only, to classify the content more rigorously.

Actions: Ask a question about this post, seek clarification or offer a correction.

12th April 2003

Separated out the CSS browser configuration details from the original CSS style warning page to make a reference article in its own right. Updated the main CSS style guide section index with these changes and added a local navigation panel.

Refreshed the main Java & servlets section index with the Servlets in action article. Updated the main Javascript & DOM section index.

Updated the main site statistics page with figures for 2002.

Actions: Ask a question about this post, seek clarification or offer a correction.

11th April 2003

Minor amendment to the introductory text for the Anchor Points section index.

Actions: Ask a question about this post, seek clarification or offer a correction.

10th April 2003

Updated the entries in the Anchor Points: Your submissions section, and the sequence of recommended books in the Anchor Points: Java & servlets section.

Added the Mac Safari browser version 67 to the validation script for the Mac font sampler and survey.

Actions: Ask a question about this post, seek clarification or offer a correction.

6th April 2003

Added External class attributes to various external links, especially in the site log section, added date fragment anchors to log entries and reformatted the markup for a range of pages.

Removed the color and background declarations from the Category selector rule in the draft persistent stylesheet, and added text-align: left to the TH selector.

Actions: Ask a question about this post, seek clarification or offer a correction.

5th April 2003

Amended the standard Ant build file to force files to be overwritten on the deployment of the test configuration, and do so in verbose mode to verify.

Created a new test case for multiple media attribute formatting to debug the StyleLink class. Amended StyleLink to remove a surplus comma delimiter on a single item list.

Updated the Code Style font survey results and added Mozilla release version 1.4a to the validation script for new submissions.

Actions: Ask a question about this post, seek clarification or offer a correction.

2nd April 2003

Switched SequenceFactory to use the HttpServletRequest getRequestURI method instead of HttpUtils' getRequestURL, which was causing unit tests on the production host to fail. Adjusted the MockServletRequest getRequestURI method against a new unit test to verify all round.

Corrected a case sensitive copy in the Ant build file and completed a full deployment of Code Style 0.1 Java project on the production host. The ratio of test cases to classes is 25:50, with a total of 191 individual tests.

Actions: Ask a question about this post, seek clarification or offer a correction.

1st April 2003

Found a number of problems running a test deployment of the Code Style 0.1 Java project on the production host, including an incomplete constructor in the HttpRequest class and an incorrect getReferrer test in MockServletRequestTest.

Actions: Ask a question about this post, seek clarification or offer a correction.

Previously on Code Style

Find technical implementation notes on all aspects of the Code Style site.

What if you were One Percent Better? Ebooks for Web developers on iPad, Kindle, Nook and Sony Reader
Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Web manager