The JSP Command-Line Compiler
Chapter 4 Using JavaServer Pages 45
The -webinc and -webxml options may not be useful for JSPs in iPlanet Web
Server.
For example, this command (all on one line) compiles the JSPs in the HelloWorld
web application:
jspc -d dir -genclass -webapp
server_root/plugins/servlets/examples/web-apps/HelloWorld
The compiled JSPs are written under dir/_jsps/. You can then put these class files
in a .JAR file.
Additional documentation for the JSP compiler is on the Jakarta site:
http://jakarta.apache.org/
Jasper and iPlanet Web Server 6.0 are not tightly integrated, so you might need to
edit the JVM Classpath (in the Configure JVM Attributes page of the Server
Manager or in the
jvm12.conf file) when deploying JSPs using tag libraries, beans,
and so on. For more information about JVM settings, see Appendix C, “JVM
Configuration.”
-uriroot dir Specifies the root directory against which URI files are
resolved. Applies only to explicitly declared JSP files.
If this option is not specified, all parent directories of the first
JSP page are searched for a WEB-INF subdirectory. The closest
directory to the JSP page that has one is used.
If none of the JSP’s parent directories have a WEB-INF
subdirectory, the directory from which jspc is invoked is
used.
-webinc file Creates partial servlet mappings for the -webapp option,
which can be pasted into a web.xml file.
-webxml file Creates an entire web.xml file for the -webapp option.
-ieplugin class_id Specifies the Java plugin COM class ID for Internet Explorer.
Used by the <jsp:plugin> tags.
-genclass
Generates class files in addition to Java files. The JDK
tools.jar file must be in the JVM classpath.
Komentáře k této Příručce