The JSP Command-Line Compiler
46 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
Package Names Generated by the JSP
Compiler
When a JSP is compiled, a package is created for it. The package name starts with
_jsps and has each pathname component of the JSP prefixed with an underscore.
For example, the generated package name for
/myjsps/hello.jsp is
_jsps._myjsps.
Because of the implicit package name associated with a generated servlet, you need
an explicit
import directive when you use a bean in a JSP, especially if the bean
doesn’t have a package name. For example:
<%@page import="MyBean" %>
<jsp:useBean id="myBean" class="MyBean" />
Specifying that JSPs Are Precompiled
The jsp-servlet element in the web-apps.xml file allows you to tell iPlanet Web
Server that JSPs in a virtual server are precompiled. Include the following tags
inside a
vs element:
<jsp-servlet enable="true">
<init-param>
<param-name>use-precompiled</param-name>
<param-value>true</param-value>
</init-param>
</jsp-servlet>
For more information about the web-apps.xml file, see Chapter 2, “Web
Applications.”
You do not need to install the JDK to run precompiled JSPs. However, you need the
JDK to develop new JSPs. For information about installing the JDK, see “What
Does the Server Need to Run JSP?,” on page 37.
Kommentare zu diesen Handbüchern