Exception handling added to messages servlet and implementation of messages form in the root servlet.