1. A method for use by a web application generator in generating source code for a web application, comprising: parsing at least one input file; reviewing the parsed input file for one or more of a tag type, an attribute name and an attribute value; and determining an event handler method based on one or more of the tag type, the attribute name and the attribute value.