From 2ddeb409bb3db6edac40f4de85f0443421190e65 Mon Sep 17 00:00:00 2001
From: Steve Loughran Ant task to run the jsp compiler.
+ Ant task to run the JSP compiler and turn JSP pages into Java source.
-It can be used to precompile jsp pages for fast initial invocation
+It can be used to precompile JSP pages for fast initial invocation
of JSP pages, deployment on a server without the full JDK installed,
or simply to syntax check the pages without deploying them.
In most cases, a javac task is usually the next stage in the build process.
@@ -72,8 +72,7 @@ The Task has the following attributes:
The mapped option will, if set to true, split the JSP text content into a
@@ -103,6 +120,22 @@ concatenated into a single write.jspc
Description
-
+ classpath
- The classpath to use to run the jsp compiler,
- and bring in any tag libraries.
+ The classpath to use to run the jsp compiler.
This can also be specified
by the nested element
@@ -90,6 +89,24 @@ The Task has the following attributes:classpath
Path).flag to control action on compile failures: default=yes
No
+
+ uribase
+
+ The uri context of relative URI
+ references in the JSP pages. If it does not
+ exist then it is derived from the location of the file
+ relative to the declared or derived value of uriroot.
+
+ No
+
+
uriroot
+
+ The root directory that uri files should be resolved
+ against.
+
+ No
+
uriroot specifies the root of the web +application. This is where all absolute uris will be resolved from. +If it is not specified then the first JSP page will be used to derive +it. To derive it each parent directory of the first JSP page is +searched for a WEB-INF directory, and the directory closest to +the JSP page that has one will be used. If none can be found then the +directory Jasperc was called from will be used. This only affects pages +translated from an explicitly declared JSP file -including references +to taglibs
+ +uribase is used to establish the uri context of +relative URI references in the JSP pages. If it does not exist then it +is derived from the location of the file relative to the declared or +derived value of uriroot. This only affects pages +translated from an explicitly declared JSP file.
+package
attribute it is possible to identify the resulting
java files and thus do full dependency checking - this task only rebuilds
java files if their jsp file has been modified.
++Jasper generates JSP pages against the JSP1.3 specification -an implementation of +version 2.2 of the servlet specification is needed to compile or run the java code.
Copyright © 2000,2001 Apache Software Foundation. All rights