JavaServer

Interface to the PageCompileServlet


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

Servlet Initialization Parameters

There are several properties that control the page compilation process. These properties can be set as initialization arguments to the servlet. Following is a list of the properties:

Property

Description

defaultEncoding

Defines the default encoding to use for servlets. Any encoding name that is supported by Java is a valid encoding string value for this property. The default value of null causes PageCompileServlet to treat the file as an array of bytes.
The default value is set to null.

verbose

If true, prints a message when compiling a .jhtml file.
The default value is set to false.

pageCheckSeconds

Defines the number of seconds to wait before checking a .jhtml file for any changes ocurring after initial compilation.
The default value is set to 0.

defaultPageClassName

Specifies the name of the class to use as a base class for pages that do not explicitly specify a class with the
<java type=extends> tag.
The default value is set to HttpServlet.

compileCommand

Specifies the name of the command to use for compiling the Java files generated by the PageCompileServlet.
The default value is:
javac ^sourceFile^
When executed, the value of the absolute path of the source file is substituted for the string ^sourceFile^.

As long as you specify the bin directory of the JDK TM in your PATH environment variable, it should not be necessary to change the default.


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