By manoj , 2 September, 2023

servlets are java programs that generate html files and execute it on the web. 

But for this it is necessary that you store your servlet program on a web server only and get it executed from there.

Types of servlet

There are 2 types of servlet

GenericServlet

 

Httpservlet

By manoj , 1 September, 2023

In this article we will learn to install Maven in Visual Studio Code. Maven installation is as simple as setting path of /bin directory to the PATH env variable.

Prerequsite: Java/JDK must be installed on system

In this article we will learn to install Maven in Visual Studio Code.

prerequisite: Java/JDK must be installed on system.

Step 1:Go to official website and browse https://maven.apache.org/download.cgi

By manoj , 1 September, 2023

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

By manoj , 31 August, 2023

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