War File

Submitted by manoj on

A war (web archive) File contains files of a web project. It may have servlet, xml, jsp, image, html, css, js etc. files.

How to create war file

To create war file, we need to use jar tool of JDK.

jar -cvf projectname.war *

-c is used to create file,

-v to generate the verbose output and

-f to specify the arhive file name.

How to deploy war file

How to extract war file

Apache Tomcat Setup and Web Project Deployment in Visual Studio code

Submitted by manoj on

In this article we will learn to setup apache tomcat in Visual Studio Code and then we will see how to create a war file from a web project and deployment in  tomcat and run application.

Important to know:

- Visual Studio code does not come with any embedded application server.

- As we know to work with web application we required server integration.

-In Visual Studio Code , We need third party extension to integrate appliaction server like tomcat.

So, Lets learn  Apache Tomcat Setup and Web Project Deployment

 

servlets and Java server pages (JSPs)

Submitted by manoj on

Introduction to JSP in Java

is used to create java based web applications

Introduction to Servlet in Java

Servlet is the base of web applications in Java. If you want to make a web application, then it is necessary to know about it.

Disadvantages of Servlet

Web page designing is difficult

Recompiled and Redeployed

For every request we have to write seprate service method

Subscribe to Java