War File

War file file is basically bundle of web applications contents(html, css, js, jsp, images, classes, xml , jars , tld etc.) in java based web application. .war stands for "Web Application Archive" file. In java, web applications are deployed on server in the form of war file format.
war-file-icon
As we know that java web application has fixed directory structure for the web application. Web project directory structure..

Directory Structure of web applications :-

Create a war file :-

 Creating war file through eclipse..
create-war-in-eclipse
browse-war-file

 Creating war file through maven command..
maven-war-file


 Creating war file through jar command..
war-jar-command