A web application is comprised of one or more related servlets, JavaServer Pages technology (JSP files), and Hyper Text Markup Language (HTML) files that you can manage as a unit.
The files in a web application are related in that they work together to perform a business logic function. The web application is a concept supported by the Java Servlet Specification. Web applications are typically packaged as .war files.