Académique Documents
Professionnel Documents
Culture Documents
1 of 5
Amit Diwan
http://www.tutorialspoint.com/articles/run-your-first-jsp-program-in-a...
This post will give you description about how you can run your project using Apache
Tomcat Server.
I would like to define these terms before proceeding:
Apache Tomcat Server(Jakarta Tomcat): It is an open source web server and servlet
container developed by the Apache Software Foundation (ASF). It implements the Java
Servlet and the JavaServer Pages (JSP) specifications and provides a pure Java HTTP web
server environment for java code to run.
JavaServerPages(JSP): It is a technology that helps in creating dynamically generated
web pages.
Install Java.
Now Go-To:
Start
Programs
APACHE TOMCAT
MONITOR TOMCAT
16-11-2016 11:22
2 of 5
http://www.tutorialspoint.com/articles/run-your-first-jsp-program-in-a...
An icon will appear on the taskbar, this icon will automatically appear after following
above step:
Click on that icon and START TOMCAT, you can see the following dialog box:
16-11-2016 11:22
3 of 5
http://www.tutorialspoint.com/articles/run-your-first-jsp-program-in-a...
Now, go to:
C:drive
Programs Files
Apache Software Foundation
tomcat
web-apps
Open web-apps and copy your project or make new folder, which you want to run in
JSP.
Example: amit2012PROJECT
Now, go back :
Tomcat
Root
Copy Web-inf from root
Paste this web-inf in your project folder i.e. amit2012PROJECT
Create a text file and name it as first.jsp, use the code shown below:
<html>
<head>
<title>blog post:ApacheTomcatServer</title>
</head>
<body>
16-11-2016 11:22
4 of 5
http://www.tutorialspoint.com/articles/run-your-first-jsp-program-in-a...
It includes HTML tags and encloses a JSP scriptlet which is a fragment of Java code that
is run when the user requests the page.
16-11-2016 11:22
5 of 5
http://www.tutorialspoint.com/articles/run-your-first-jsp-program-in-a...
16-11-2016 11:22