Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Instrukcja Użytkownika Strona 42

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 124
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 41
Enabling JSPs
42 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
Enabling JSPs
To enable JSPs, follow these steps:
1. Enable servlets. Select the Java tab in the Server manager, then select the
Enable/Disable Servlets/JSP tab. Check the Enable Java Globally box to enable
servlets for the entire server. Check the Enable Java for Class box to enable
servlets for a single virtual server class. You cannot enable servlets for a class
unless Java is globally enabled. By default, Java is globally enabled and
enabled for each virtual server class.
2. Include the jsp-servlet element with enable="true" in the web-apps.xml
file. For more information about the
web-apps.xml file, see Chapter 2, “Web
Applications.”
3. Add tools.jar to the JVM classpath. For more information, see Appendix C,
“JVM Configuration.”
Making JSPs Available to Clients
You can make JSPs accessible to clients in one of these two ways:
Include the JSPs in web applications and deploy those web applications. How
to do this is described in Chapter 2, “Web Applications.”
Configure the JSPs in the default virtual server. This is provided for backward
compatibility with iPlanet Web Server 4.x. How to do this is described in
Chapter 8, “Legacy Servlet and JSP Configuration.”
Deleting Cache Version Files
The server uses the following directory to cache information for JavaServer Pages
(JSP):
server_root/https-server_id/ClassCache/virtual_server_id/webapp_uri/
You can change the location of the JSP class cache using the scratchdir
initialization parameter of the
jsp-servlet element in the web-apps.xml file. For
more information, see “Other JSP Initialization Parameters,” on page 47.
When the server serves a JSP page, it creates a
.java and a .class file associated
with the JSP and stores them in the JSP class cache under the
ClassCache directory.
Przeglądanie stron 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 123 124

Komentarze do niniejszej Instrukcji

Brak uwag