1.1 --- a/README.txt Sat Jul 03 16:26:14 2004 +0000
1.2 +++ b/README.txt Sat Jul 03 16:50:02 2004 +0000
1.3 @@ -12,23 +12,30 @@
1.4 Framework Support
1.5 -----------------
1.6
1.7 -Currently, BaseHTTPRequestHandler (via BaseHTTPServer in the standard
1.8 -library), CGI, mod_python, Twisted and Webware are supported. Each framework
1.9 -has its own set of strengths and weaknesses, but the idea is that deployment
1.10 -concerns can be considered separately from the implementation of application
1.11 -functionality. Consult the NOTES.txt files in each framework's subdirectory of
1.12 -the docs directory for some notes on how applications may be run in each
1.13 -environment.
1.14 +Currently, BaseHTTPRequestHandler (via BaseHTTPServer in the standard library),
1.15 +CGI, Jython/Java Servlet API, mod_python, Twisted and Webware are supported.
1.16 +Each framework has its own set of strengths and weaknesses, but the idea is that
1.17 +deployment concerns can be considered separately from the implementation of
1.18 +application functionality. Consult the NOTES.txt files in each framework's
1.19 +subdirectory of the docs directory for some notes on how applications may be run
1.20 +in each environment.
1.21
1.22 Tested Frameworks
1.23 -----------------
1.24
1.25 -BaseHTTPRequestHandler Python 2.2.2
1.26 +BaseHTTPRequestHandler Python 2.2.2, Python 2.3.3
1.27 CGI Apache 2.0.44
1.28 +Jython/Java Servlet API Jython 2.1, Java JDK 1.3.1_02, Tomcat 4.1.27 (Servlet 2.3)
1.29 mod_python 3.0.3 (3.1.3 for cookie support)
1.30 Twisted 1.0.5
1.31 Webware 0.8.1, CVS (2004-02-06)
1.32
1.33 +New in WebStack 0.6 (Changes Since WebStack 0.5)
1.34 +------------------------------------------------
1.35 +
1.36 +Introduced Jython/Java Servlet API support.
1.37 +Minor fixes to example applications and to BaseHTTPRequestHandler.
1.38 +
1.39 New in WebStack 0.5 (Changes Since WebStack 0.4)
1.40 ------------------------------------------------
1.41
1.42 @@ -78,28 +85,3 @@
1.43 Update the release notes (see above).
1.44 Check the setup.py file and ensure that all package directories are mentioned.
1.45 Tag, export, archive, upload.
1.46 -
1.47 -Java Servlet API Notes
1.48 -----------------------
1.49 -
1.50 -Using JythonServlet:
1.51 -
1.52 -mkdir SimpleApp
1.53 -mkdir SimpleApp/WEB-INF
1.54 -mkdir SimpleApp/WEB-INF/classes
1.55 -mkdir SimpleApp/WEB-INF/jython
1.56 -mkdir SimpleApp/WEB-INF/lib
1.57 -cp ${JYTHON_HOME}/jython.jar SimpleApp/WEB-INF/lib
1.58 -cp -R ${WEBSTACK_HOME}/WebStack SimpleApp/WEB-INF/jython
1.59 -cp -R ${WEBSTACK_HOME}/examples/Common/Simple SimpleApp/WEB-INF/jython
1.60 -cp ${WEBSTACK_HOME}/examples/JavaServlet/SimpleApp.py SimpleApp
1.61 -cp ${WEBSTACK_HOME}/examples/JavaServlet/web.xml SimpleApp/WEB-INF
1.62 -mv SimpleApp ${CATALINA_HOME}/webapps
1.63 -
1.64 -Unfortunately, PyServlet doesn't manage to find various modules in packages:
1.65 -
1.66 -javax.servlet.ServletException: Could not create Jython servletTraceback (innermost last):
1.67 - File "/data/home/paulb/Software/Java/jakarta-tomcat-4.1.27/webapps/SimpleApp/SimpleApp.py", line 3, in ?
1.68 -ImportError: cannot import name JavaServlet
1.69 -
1.70 -The same modules can be imported in interactive Jython.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/docs/JavaServlet/NOTES.txt Sat Jul 03 16:50:02 2004 +0000
2.3 @@ -0,0 +1,18 @@
2.4 +Use the build.py script in the examples/JavaServlet directory to create a Web
2.5 +application directory. Then, deploy the directory in the servlet container. For
2.6 +example:
2.7 +
2.8 +cd examples/JavaServlet
2.9 +jython build.py SimpleApp.py ../Common/Simple/ ../../
2.10 +
2.11 +This identifies the handler (SimpleApp.py), the application package (Simple) and
2.12 +the directory where the WebStack package is found; it produces a directory
2.13 +called SimpleApp in the current directory. To deploy the Web application into a
2.14 +servlet container like Tomcat, a command like the following can be performed:
2.15 +
2.16 +mv SimpleApp/ /home/paulb/Software/Java/jakarta-tomcat-4.1.27/webapps/
2.17 +
2.18 +Upon starting or restarting the servlet container, an URL such as the following
2.19 +can be used to visit the application:
2.20 +
2.21 +http://localhost:8080/SimpleApp/SimpleApp.py