Implementing logging functionality using servlet and html