Before setting up deploying JSP on your environment, make sure that JAVA_HOME environment is set. and also download tomcat from the apache site annd should set TOMCAT_HOME environment is set.
Please make sure that PATH and CLASSPATH environment variables are setSteps to create a first webapplication.
- Create a HelloWorld folder and the folder structure looks like as followng structure HelloWorld root folder containts following structure
- Create a first.jsp which prints the hello world code to the console
type the above code in the notepad and name it as 'first.jsp'. please this file into your HelloWorld root folder of your webapplication.
Hello World JSP page<%@ page language=”java” %> <% System.out.println(“Hello World ”); %>