A First JSP ApplicationFIGURE 1-1 shows what is perhaps the simplest JSP application one could write. It continues the illustrious computer science Hello, World tradition. CODE EXAMPLE 1-1 and CODE EXAMPLE 1-2 show how the example is put together.
The Page Directive
The <%@ page info="a hello world example" %>
The
You can use the The Include Directive
The
You can see the content of the included file by viewing the page source of the main JSP file while you are running Hello, World. The included file does not contain A Note About the JSP Tags
As you use the examples in this chapter, remember that the JSP tags are case sensitive. If, for example, you type If you have any doubts about the correct spelling or syntax of any JSP tag, see the JavaServer Pages Syntax Card. How To Run the ExampleInstall the example as described in Installing and Running the Example Applications. Then, open a Web browser and go to:
[Top] [Prev] [Next] [Bottom] Copyright © 2000, Sun Microsystems, Inc. All rights reserved. | ||||||||||||
Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.
|
| ||||||||||||