50 How to Prepare/Create .War file for java web application | Adv Java Servlet Programming Tutorial

Published: 09 February 2018
on channel: tech fort
11,354
123

#How to #prepare/#create #.war #file for #java-#web-#application: #adv java #Advance #Java #Servlet #Programming #Tutorial
Programmers can deploy java web application in either as .war files or as directories.

.war files means "Webapplication Archieve".

To prepare this .war file we can use jar command.

#Steps to create/prepare .war file:
----------------------------------
Keep Java Web application ready (like 11VoteApp).

Step 1: keep Deployment directory structure ready.
J:\1-Classes\War Folder\11VoterApp
|------input.html
|------tips.gif
|------Validation.js
|------WEB-INF
|--------web.xml
|--------classes
|--------VoterSrv.java
|--------p1.VoterSrv.class

Step 2: Prepare .war file

J:\1-Classes\War Folder\11VoterApp jar cf VoterApp.war .
Here c - indicate Create .jar/.war file
Here f - indicate jar/war file name.


On this page of the site you can watch the video online 50 How to Prepare/Create .War file for java web application | Adv Java Servlet Programming Tutorial with a duration of hours minute second in good quality, which was uploaded by the user tech fort 09 February 2018, share the link with friends and acquaintances, this video has already been watched 11,354 times on youtube and it was liked by 123 viewers. Enjoy your viewing!