Running the example
Running this example takes the following steps:
- Create a new ITP/Server service "listdir". Define the script above.
- Before compiling the listdir service, make sure to define Version=$1 and Dir=$2 for the service parameters.
- Place listdir.jsp in an ITP/OnLine application directory.
- Place "makelist.xsl" in the same application directory as listdir.jsp.
You can subsequently invoke the following URL (we placed listdir.jsp in the application "test" and used the machine "host"):
"http://host/itp/app/test/showlog.jsp?dir=c:/"
The dir parameter ('dir=') should be used to specify the directory to view.