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