JSP Tutorials - Herong's Tutorial Examples - v5.11, by Herong Yang
My First JSP Page - hello.jsp
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.
The next thing I need to test is to create Web page with JSP (JavaServer Page) codes.
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 the default application folder:
\local\tomcat\webapps\ROOT\hello.jsp
3. Run a Web browser with this URL: http://localhost:8080/hello.jsp. You should see the "Hello world! -- From JSP" message in the browser:
Congratulations again! Now, we have confirmed that Tomcat server is running as a Web server that supports JSP pages:
Table of Contents
JSP (JavaServer Pages) Overview
►Tomcat Installation on Windows Systems
Downloading and Installing Tomcat
Setting Up Tomcat Server Admin Access
Reviewing Tomcat Server Status Page
Tomcat Web Application Manager
My First HTML Page - hello.html
►My First JSP Page - hello.jsp
Syntax of JSP Pages and JSP Documents
JavaBean Objects and "useBean" Action Elements
Managing HTTP Response Header Lines
Non-ASCII Characters Support in JSP Pages
Overview of JSTL (JSP Standard Tag Libraries)
Multiple Tags Working Together
Using Tomcat on CentOS Systems
Connecting to SQL Server from Servlet