Java Web Server

Page Compilation Quick Reference


Contents / New Features / Administrator Docs / Developer Docs / Index / Page Comp Intro

Tags Used in Page Compilation

The following table lists the tags used in the page compilation process:

<java></java>

Java tag delimeters which define Java code for the service method.

<java type=code></java>

Java tag delimiters; same as <java></java>.

<java type=import> </java>

Encloses an argument containing the name of the class to import.

<java type=extends></java>

Encloses an argument containing the name of a class to extend the servlet from.

<java type=print></java>

Encloses a Java expression to be sent to the output stream.

<java type=implements></java>

Encloses a list of interfaces the servlet should implement.

<java type=class></java>

Encloses an argument for adding member variables and defining methods of the page class directly.

Back quote operator:<tag `java expression` >

The back quote operator is a short hand method for embedding a Java expression inside a tag

<servlet> </servlet>

Servlet tags, used to enclose the name of a servlet. The syntax is:
<servlet [name="servlet name"] [code="class file"] [codebase="URL"] [initparam="..."]> <param name="paramname" value="paramvalue"> </servlet>

The following are variables defined in the service method:

Type

Name

Notes

HttpServletRequest

request

 

HttpServletResponse

response

 

ServletOutputStream

out

If default encoding is used

PrintWriter

out

If encoding is specified


Top
java-server-feedback@java.sun.com
Copyright © 1997 Sun Microsystems, Inc.
All Rights Reserved.