1 Use the build.py script in the examples/JavaServlet directory to create a Web
2 application directory. Then, deploy the directory in the servlet container. For
3 example:
4
5 cd examples/JavaServlet
6 jython build.py SimpleApp.py ../Common/Simple/ ../../
7
8 This identifies the handler (SimpleApp.py), the application package (Simple) and
9 the directory where the WebStack package is found; it produces a directory
10 called SimpleApp in the current directory. To deploy the Web application into a
11 servlet container like Tomcat, a command like the following can be performed:
12
13 mv SimpleApp/ /home/paulb/Software/Java/jakarta-tomcat-4.1.27/webapps/
14
15 Upon starting or restarting the servlet container, an URL such as the following
16 can be used to visit the application:
17
18 http://localhost:8080/SimpleApp/SimpleApp.py