My First HTML Page on CentOS

This section provides a tutorial example on how to create the first Web page with HTML code to test the Tomcat Web server on a CentOS system.

Now I am ready to create my first Web page written as an HTML file on the Tomcat server on my local CentOS system.

1. Create a text file called hello.html with the following HTML code:

<html><body>Hello world!</body></html>

2. Create a new Web application directory on the Tomcat server. Make sure that it has "read" permission for all users. No need to restart the Tomcat server. It will automatically load it.

# mkdir /usr/share/tomcat/webapps/herong

3. Save the HTML file to the application directory. Make sure that it has "read" permission for all users.

# cp hello.html /usr/share/tomcat/webapps/herong/hello.html

4. Run a Web browser with this URL: http://localhost:8080/herong/hello.html. You should see the "Hello world!" message in the browser.

5. If the hello HTML page is not showing up, check the log file. You should see some errors.

# tail /usr/share/tomcat/logs/catalina.out

Table of Contents

 About This Book

 JSP (JavaServer Pages) Overview

 Tomcat Installation on Windows Systems

 JSP Scripting Elements

 Java Servlet Introduction

 JSP Implicit Objects

 Syntax of JSP Pages and JSP Documents

 JSP Application Session

 Managing Cookies in JSP Pages

 JavaBean Objects and "useBean" Action Elements

 Managing HTTP Response Header Lines

 Non-ASCII Characters Support in JSP Pages

 Performance of JSP Pages

 EL (Expression Language)

 Overview of JSTL (JSP Standard Tag Libraries)

 JSTL Core Library

 JSP Custom Tags

 JSP Java Tag Interface

 Custom Tag Attributes

 Multiple Tags Working Together

 File Upload Test Application

Using Tomcat on CentOS Systems

 Download and Install Tomcat on CentOS

 Start/Stop Tomcat Server on CentOS

My First HTML Page on CentOS

 My First JSP Page on CentOS

 My First Servlet Page on CentOS

 Using Tomcat on macOS Systems

 Connecting to SQL Server from Servlet

 Developing Web Applications with Servlet

 Archived Tutorials

 References

 Full Version in PDF/EPUB