Chapter 2. Getting Started with Java Server Pages
In this chapter
A "Hello World" Java Server Page
Java Server Pages are, in the most basic sense, Web pages with embedded Java code. The embedded Java code is executed on the server before the page is returned to the browser. If a picture is worth a thousand words, in this case an example is worth a thousand explanations. Listing 2.1 shows a basic Java Server Page.
Example 2.1. HelloWorld.jsp
<HTML> <BODY> <% out.println("<H1>Hello World!</H1>"); %> </BODY> </HTML>
Although you can probably ...
Get Special Edition Using Java™ Server Pages and Servlets now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.