Red Hat NETSCAPE ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual de usuario Pagina 22

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 148
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 21
Enterprise Server 6.1 APIs
22 Netscape Enterprise Server Programmers Guide April 2002 (Draft)
A JavaServer Page (JSP) is a page, much like an HTML page, that can be viewed in
a web browser. However,in addition to HTML tags, itcan include a set ofJSP tags
and directives intermixed with Java code that extend the ability of the web page
designer to incorporate dynamic content in a page. These additional features
provide functionality such as displaying property values and using simple
conditionals.
For more information on using JavaServer Pages, see the JavaServer Pages
documentation from Sun Microsystems at:
http://java.sun.com/products/jsp/index.html
Enabling Java Servlets and JavaServer Pages
To 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.
Toenable JSPs, you must also include the
jsp-servlet element with enable=true
in the web-apps.xml file and add tools.jar to the JVM classpath. If you want to
run uncompiled JSPs, you must also install the Java Development Kit (JDK).
When you install Enterprise Server 6.1, you can choose to install the Java Runtime
Environment (JRE), which is provided with Enterprise Server, or you can specify a
path to a JDK. The JDK is not bundled with the Enterprise Server, but you can
download it for free from Sun Microsystems at:
http://java.sun.com/products/jdk/1.4/
The server can run servlets and precompiled JSPs using the JRE, but it needs the
JDK to run uncompiled JSPs.
Enterprise Server 6.1 requires you to use an official version of JDK 1.4. For details,
see the Netscape Enterprise Server Programmer’s Guide to Servlets.
Regardless of whether you choose to install the JRE or specifya pathto the JDK
during installation, you can tell the Enterprise Server to switch to using either the
JREorJDKatanytimebyusingthe“ConfigureJRE/JDKPathspageintheGlobal
Settings tab of the Administration Server.
The
magnus.conf file contains thefollowingInit directives. Thefirst one loads the
servlets library and makes the servlet-related functions available to the Enterprise
Server. The other two directives initialize the servlet engine. The
shlib value
shown is for Windows NT/Windows 2000.
Vista de pagina 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 147 148

Comentarios a estos manuales

Sin comentarios