Download presentation
1
Apache Tomcat & Quick Tutorial
2
Requirement: Java Runtime Environment (JRE) must be installed
3
Go to http://tomcat.apache.org/
In download section, pick the latest version (Tomcat 6.x)
4
Scroll down and click ‘Windows Service Installer’
Save the file, and execute it
5
Click Next until you come to this step
Select ‘Full’ for type of install
6
Click Next until you come to this step
Make sure the JRE is installed and the directory is valid
7
After the installation, test the configuration by going to http://localhost:8080/
If it’s successful, the webpage with the following words will appear This address is actually the directory of ‘C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps’
8
For tutorial, go to http://www.jsptut.com/
Under section “Getting familiar with your JSP server”, copy the following HTML codes <HTML> <BODY> Hello, world </BODY> </HTML>
9
…and paste it in the Notepad
Save the file as ‘test.jsp’ into this directory: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples
10
In your web browser, go to http://localhost:8080/examples/test.jsp
If it’s successful the word ‘Hello World’ will appear
11
Next, try the following Java embedded codes
<HTML> <BODY> Hello! The time is now <%= new java.util.Date() %> </BODY> </HTML>
12
The ‘<%= new java. util
The ‘<%= new java.util.Date() %>’ is Java embedded, with the use of ‘<%= (java embed) %>’ The output will be:-
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.