Tuesday, July 7, 2009

Day 30

Work continued on Lighthouse task #117. Today I was able to make the responder which would call the comparer class to compare two files. The responder looks for, in the url request, the tag ?compareHistory followed by two file names, which are then extended based off the current page name, and extended once again to include the root directory. After a little fiddling around I got this to work, but then it would just display a ton of html and ugly tables in the result page. So then I made a velocity template which would accept three things, a boolean of whether the files matched or not, the first file, and the second file. This was a little better, but the files contain more information than is needed, so next I will have to somehow extract only the important information from the files, and then stick that into the velocity template.

No comments:

Post a Comment