My First JSP Page on macOS

This section provides a tutorial example on how to create the first JSP page with JSP code to test the JSP support of the Tomcat Web server on macOS systems.

The next thing I need to test is to create a Web page with JSP (JavaServer Page) code.

1. Create a text file called hello.jsp with the following JSP code:

<html><body>
<% out.println("Hello world! -- From JSP"); %>
</body></html>

2. Save this JSP file to my application directory. Make sure that it has "read" permission for all users.

# cp hello.jsp /Library/Tomcat/apache-tomcat-9.0.26/webapps/herong/hello.jsp

3. Run a Web browser with this URL: http://localhost:8080/herong/hello.jsp. You should see the "Hello world! -- From JSP" message in the browser.

Congratulations again! Now, I have confirmed that Tomcat server is running as a Web server that supports JSP pages on my local macOS system:

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

Using Tomcat on macOS Systems

 Download and Install Tomcat on macOS

 Start/Stop Tomcat Server on macOS

 My First HTML Page on macOS

My First JSP Page on macOS

 My First Servlet Page on macOS

 Connecting to SQL Server from Servlet

 Developing Web Applications with Servlet

 Archived Tutorials

 References

 Full Version in PDF/EPUB