1.1 --- a/docs/JavaServlet/NOTES.txt Fri Oct 05 22:28:55 2007 +0000
1.2 +++ b/docs/JavaServlet/NOTES.txt Fri Oct 05 22:29:51 2007 +0000
1.3 @@ -22,17 +22,15 @@
1.4 deploy the directory in the servlet container. For example:
1.5
1.6 jython webstack_java_build.py examples/JavaServlet/SimpleApp.py \
1.7 - . \
1.8 - /tmp/jython-cache \
1.9 - web.xml \
1.10 - examples/Common/Simple/ \
1.11 + --webstack . . /tmp/jython-cache web.xml examples/Common/Simple/ \
1.12 --libraries \
1.13 $CATALINA_HOME/common/lib/activation.jar \
1.14 $CATALINA_HOME/common/lib/mail.jar
1.15
1.16 This identifies the handler (SimpleApp.py), the directory where the WebStack
1.17 -package is found (.), the directory to be used for caching imported classes,
1.18 -and the name of the template for the deployment descriptor (web.xml); it also
1.19 +package is found (.), the directory where the WebStack tools are found (.),
1.20 +the directory to be used for caching imported classes (/tmp/jython-cache), and
1.21 +the name of the template for the deployment descriptor (web.xml); it also
1.22 specifies the package directories for the application (Simple), and after the
1.23 --libraries flag, the library files which must also be deployed with the
1.24 application (activation.jar and mail.jar from the Tomcat libraries in this
1.25 @@ -45,6 +43,20 @@
1.26 been introduced to work with environments where the default class cache
1.27 directory may, for some reason, be read-only.
1.28
1.29 +Using an Application with JSP Resources
1.30 +---------------------------------------
1.31 +
1.32 +Use the webstack_java_build.py script to create a Web application directory,
1.33 +specifying the jsp-web.xml descriptor file. For example:
1.34 +
1.35 +jython webstack_java_build.py examples/JavaServlet/JSPTest/JSPTestApp.py \
1.36 + examples/JavaServlet/JSPTest/test.jsp \
1.37 + --webstack . . /tmp/jython-cache jsp-web.xml \
1.38 + examples/JavaServlet/JSPTest/Common/JSPTest \
1.39 + --libraries \
1.40 + $CATALINA_HOME/common/lib/activation.jar \
1.41 + $CATALINA_HOME/common/lib/mail.jar
1.42 +
1.43 Accessing Java Libraries
1.44 ------------------------
1.45