# HG changeset patch # User paulb # Date 1191623391 0 # Node ID 3c8b7f544a0db5a3f94844a795ca0b4b84bf26b8 # Parent f5ca9f60fac346f650aac53ed25e19554b12ff80 [project @ 2007-10-05 22:29:51 by paulb] Updated the syntax of the webstack_java_build.py invocation, adding an example invocation for the JSPTest example. diff -r f5ca9f60fac3 -r 3c8b7f544a0d docs/JavaServlet/NOTES.txt --- a/docs/JavaServlet/NOTES.txt Fri Oct 05 22:28:55 2007 +0000 +++ b/docs/JavaServlet/NOTES.txt Fri Oct 05 22:29:51 2007 +0000 @@ -22,17 +22,15 @@ deploy the directory in the servlet container. For example: jython webstack_java_build.py examples/JavaServlet/SimpleApp.py \ - . \ - /tmp/jython-cache \ - web.xml \ - examples/Common/Simple/ \ + --webstack . . /tmp/jython-cache web.xml examples/Common/Simple/ \ --libraries \ $CATALINA_HOME/common/lib/activation.jar \ $CATALINA_HOME/common/lib/mail.jar This identifies the handler (SimpleApp.py), the directory where the WebStack -package is found (.), the directory to be used for caching imported classes, -and the name of the template for the deployment descriptor (web.xml); it also +package is found (.), the directory where the WebStack tools are found (.), +the directory to be used for caching imported classes (/tmp/jython-cache), and +the name of the template for the deployment descriptor (web.xml); it also specifies the package directories for the application (Simple), and after the --libraries flag, the library files which must also be deployed with the application (activation.jar and mail.jar from the Tomcat libraries in this @@ -45,6 +43,20 @@ been introduced to work with environments where the default class cache directory may, for some reason, be read-only. +Using an Application with JSP Resources +--------------------------------------- + +Use the webstack_java_build.py script to create a Web application directory, +specifying the jsp-web.xml descriptor file. For example: + +jython webstack_java_build.py examples/JavaServlet/JSPTest/JSPTestApp.py \ + examples/JavaServlet/JSPTest/test.jsp \ + --webstack . . /tmp/jython-cache jsp-web.xml \ + examples/JavaServlet/JSPTest/Common/JSPTest \ + --libraries \ + $CATALINA_HOME/common/lib/activation.jar \ + $CATALINA_HOME/common/lib/mail.jar + Accessing Java Libraries ------------------------