Professional Documents
Culture Documents
Environment Used
JDK 6 (Java SE 6)
Apache Tomcat 6.x
Windows OS
Installing JDK
JDK should be installed with proper environment set up. Read this
page for installing the JDK and setting up the environment. Installing
JDK automatically installs JRE.
1.Welcome screen
Simply click on the Next button to continue installation process.
Step1
Install Java.
Step2
Install Apache Tomcat
At the time of installation, it will by-default recognize JRE path.
(under installed java location directory)
Step3
Now Go-To:
Start
Programs
APACHE TOMCAT
MONITOR TOMCAT
Step4
An icon will appear on the taskbar, this icon will automatically
appear after following above step:
Step5
Click on that icon and START TOMCAT, you can see the following
dialog box:
Step6
Now open Mozilla Firefox(or any other browser)
Step7
Type http://localhost:8080/ on address bar and press enter.
The same can be seen here:
Step8
It will show tomcat, as shown in above window.
(if not, then try again, may be a problem in installation or youre not
following above steps correctly
Step9
Now, go to:
C:drive
Programs Files
Apache Software Foundation
tomcat
web-apps
(or navigate where you have installed APACHE TOMCAT)
Step10
Open web-apps and copy your project or make new folder, which
you want to run in JSP.
Example: SCRIPTINGLANGUAGE2016
Now, go back :
Tomcat
Root
Copy Web-inf from root
Paste
this
web-inf
in
i.e. SCRIPTINGLANGUAGE2016
your
project
folder
Step11
Create a text file and name it as first.jsp, use the code shown
below:
<html>
<head>
<title>blog post:ApacheTomcatServer</title>
</head>
<body>
<%-- START --%>
<%
out.println("Name = RONAK KHANGAONKAR, ");
out.println("ROLL NO-10.");
%>
<%-- END --%>
</body>
</html>
Conclusion :